[PATCH] quota: small cleanups
- "extern inline" -> "static inline" - every file should #include the headers containing the prototypes for it's global functions Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
e3f17f0f6e
commit
be586bab8b
|
@ -77,6 +77,7 @@
|
|||
#include <linux/kmod.h>
|
||||
#include <linux/namei.h>
|
||||
#include <linux/buffer_head.h>
|
||||
#include <linux/quotaops.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/security.h>
|
||||
#include <linux/syscalls.h>
|
||||
#include <linux/buffer_head.h>
|
||||
#include <linux/quotaops.h>
|
||||
|
||||
/* Check validity of generic quotactl commands */
|
||||
static int generic_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id)
|
||||
|
|
|
@ -198,38 +198,38 @@ static __inline__ int DQUOT_OFF(struct super_block *sb)
|
|||
#define DQUOT_SYNC(sb) do { } while(0)
|
||||
#define DQUOT_OFF(sb) do { } while(0)
|
||||
#define DQUOT_TRANSFER(inode, iattr) (0)
|
||||
extern __inline__ int DQUOT_PREALLOC_SPACE_NODIRTY(struct inode *inode, qsize_t nr)
|
||||
static inline int DQUOT_PREALLOC_SPACE_NODIRTY(struct inode *inode, qsize_t nr)
|
||||
{
|
||||
inode_add_bytes(inode, nr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern __inline__ int DQUOT_PREALLOC_SPACE(struct inode *inode, qsize_t nr)
|
||||
static inline int DQUOT_PREALLOC_SPACE(struct inode *inode, qsize_t nr)
|
||||
{
|
||||
DQUOT_PREALLOC_SPACE_NODIRTY(inode, nr);
|
||||
mark_inode_dirty(inode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern __inline__ int DQUOT_ALLOC_SPACE_NODIRTY(struct inode *inode, qsize_t nr)
|
||||
static inline int DQUOT_ALLOC_SPACE_NODIRTY(struct inode *inode, qsize_t nr)
|
||||
{
|
||||
inode_add_bytes(inode, nr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern __inline__ int DQUOT_ALLOC_SPACE(struct inode *inode, qsize_t nr)
|
||||
static inline int DQUOT_ALLOC_SPACE(struct inode *inode, qsize_t nr)
|
||||
{
|
||||
DQUOT_ALLOC_SPACE_NODIRTY(inode, nr);
|
||||
mark_inode_dirty(inode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern __inline__ void DQUOT_FREE_SPACE_NODIRTY(struct inode *inode, qsize_t nr)
|
||||
static inline void DQUOT_FREE_SPACE_NODIRTY(struct inode *inode, qsize_t nr)
|
||||
{
|
||||
inode_sub_bytes(inode, nr);
|
||||
}
|
||||
|
||||
extern __inline__ void DQUOT_FREE_SPACE(struct inode *inode, qsize_t nr)
|
||||
static inline void DQUOT_FREE_SPACE(struct inode *inode, qsize_t nr)
|
||||
{
|
||||
DQUOT_FREE_SPACE_NODIRTY(inode, nr);
|
||||
mark_inode_dirty(inode);
|
||||
|
|
Loading…
Reference in New Issue