Make checkpatch.pl shut up on fs/inode.c
Code Quality According To Mingo(tm) has been vastly improved, no code has been damaged^Wchanged^Wdamaged. [commit message rewritten -- AV] Signed-off-by: Manish Katiyar <mkatiyar@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Родитель
ddbaaf3024
Коммит
6b3304b531
37
fs/inode.c
37
fs/inode.c
|
@ -252,7 +252,6 @@ void inode_init_once(struct inode *inode)
|
|||
mutex_init(&inode->inotify_mutex);
|
||||
#endif
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(inode_init_once);
|
||||
|
||||
static void init_once(void *foo)
|
||||
|
@ -303,7 +302,6 @@ void clear_inode(struct inode *inode)
|
|||
cd_forget(inode);
|
||||
inode->i_state = I_CLEAR;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(clear_inode);
|
||||
|
||||
/*
|
||||
|
@ -407,7 +405,6 @@ int invalidate_inodes(struct super_block * sb)
|
|||
|
||||
return busy;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(invalidate_inodes);
|
||||
|
||||
static int can_unuse(struct inode *inode)
|
||||
|
@ -524,7 +521,10 @@ static void __wait_on_freeing_inode(struct inode *inode);
|
|||
* by hand after calling find_inode now! This simplifies iunique and won't
|
||||
* add any additional branch in the common code.
|
||||
*/
|
||||
static struct inode * find_inode(struct super_block * sb, struct hlist_head *head, int (*test)(struct inode *, void *), void *data)
|
||||
static struct inode *find_inode(struct super_block *sb,
|
||||
struct hlist_head *head,
|
||||
int (*test)(struct inode *, void *),
|
||||
void *data)
|
||||
{
|
||||
struct hlist_node *node;
|
||||
struct inode *inode = NULL;
|
||||
|
@ -548,7 +548,8 @@ repeat:
|
|||
* find_inode_fast is the fast path version of find_inode, see the comment at
|
||||
* iget_locked for details.
|
||||
*/
|
||||
static struct inode * find_inode_fast(struct super_block * sb, struct hlist_head *head, unsigned long ino)
|
||||
static struct inode *find_inode_fast(struct super_block *sb,
|
||||
struct hlist_head *head, unsigned long ino)
|
||||
{
|
||||
struct hlist_node *node;
|
||||
struct inode *inode = NULL;
|
||||
|
@ -645,7 +646,6 @@ struct inode *new_inode(struct super_block *sb)
|
|||
}
|
||||
return inode;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(new_inode);
|
||||
|
||||
void unlock_new_inode(struct inode *inode)
|
||||
|
@ -674,7 +674,6 @@ void unlock_new_inode(struct inode *inode)
|
|||
inode->i_state &= ~(I_LOCK|I_NEW);
|
||||
wake_up_inode(inode);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(unlock_new_inode);
|
||||
|
||||
/*
|
||||
|
@ -683,7 +682,11 @@ EXPORT_SYMBOL(unlock_new_inode);
|
|||
* We no longer cache the sb_flags in i_flags - see fs.h
|
||||
* -- rmk@arm.uk.linux.org
|
||||
*/
|
||||
static struct inode * get_new_inode(struct super_block *sb, struct hlist_head *head, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *data)
|
||||
static struct inode *get_new_inode(struct super_block *sb,
|
||||
struct hlist_head *head,
|
||||
int (*test)(struct inode *, void *),
|
||||
int (*set)(struct inode *, void *),
|
||||
void *data)
|
||||
{
|
||||
struct inode *inode;
|
||||
|
||||
|
@ -731,7 +734,8 @@ set_failed:
|
|||
* get_new_inode_fast is the fast path version of get_new_inode, see the
|
||||
* comment at iget_locked for details.
|
||||
*/
|
||||
static struct inode * get_new_inode_fast(struct super_block *sb, struct hlist_head *head, unsigned long ino)
|
||||
static struct inode *get_new_inode_fast(struct super_block *sb,
|
||||
struct hlist_head *head, unsigned long ino)
|
||||
{
|
||||
struct inode *inode;
|
||||
|
||||
|
@ -823,7 +827,6 @@ struct inode *igrab(struct inode *inode)
|
|||
spin_unlock(&inode_lock);
|
||||
return inode;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(igrab);
|
||||
|
||||
/**
|
||||
|
@ -924,7 +927,6 @@ struct inode *ilookup5_nowait(struct super_block *sb, unsigned long hashval,
|
|||
|
||||
return ifind(sb, head, test, data, 0);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(ilookup5_nowait);
|
||||
|
||||
/**
|
||||
|
@ -953,7 +955,6 @@ struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
|
|||
|
||||
return ifind(sb, head, test, data, 1);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(ilookup5);
|
||||
|
||||
/**
|
||||
|
@ -976,7 +977,6 @@ struct inode *ilookup(struct super_block *sb, unsigned long ino)
|
|||
|
||||
return ifind_fast(sb, head, ino);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(ilookup);
|
||||
|
||||
/**
|
||||
|
@ -1015,7 +1015,6 @@ struct inode *iget5_locked(struct super_block *sb, unsigned long hashval,
|
|||
*/
|
||||
return get_new_inode(sb, head, test, set, data);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(iget5_locked);
|
||||
|
||||
/**
|
||||
|
@ -1047,7 +1046,6 @@ struct inode *iget_locked(struct super_block *sb, unsigned long ino)
|
|||
*/
|
||||
return get_new_inode_fast(sb, head, ino);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(iget_locked);
|
||||
|
||||
int insert_inode_locked(struct inode *inode)
|
||||
|
@ -1076,7 +1074,6 @@ int insert_inode_locked(struct inode *inode)
|
|||
iput(old);
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(insert_inode_locked);
|
||||
|
||||
int insert_inode_locked4(struct inode *inode, unsigned long hashval,
|
||||
|
@ -1106,7 +1103,6 @@ int insert_inode_locked4(struct inode *inode, unsigned long hashval,
|
|||
iput(old);
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(insert_inode_locked4);
|
||||
|
||||
/**
|
||||
|
@ -1124,7 +1120,6 @@ void __insert_inode_hash(struct inode *inode, unsigned long hashval)
|
|||
hlist_add_head(&inode->i_hash, head);
|
||||
spin_unlock(&inode_lock);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(__insert_inode_hash);
|
||||
|
||||
/**
|
||||
|
@ -1139,7 +1134,6 @@ void remove_inode_hash(struct inode *inode)
|
|||
hlist_del_init(&inode->i_hash);
|
||||
spin_unlock(&inode_lock);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(remove_inode_hash);
|
||||
|
||||
/*
|
||||
|
@ -1187,7 +1181,6 @@ void generic_delete_inode(struct inode *inode)
|
|||
BUG_ON(inode->i_state != I_CLEAR);
|
||||
destroy_inode(inode);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(generic_delete_inode);
|
||||
|
||||
static void generic_forget_inode(struct inode *inode)
|
||||
|
@ -1237,7 +1230,6 @@ void generic_drop_inode(struct inode *inode)
|
|||
else
|
||||
generic_forget_inode(inode);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL_GPL(generic_drop_inode);
|
||||
|
||||
/*
|
||||
|
@ -1279,7 +1271,6 @@ void iput(struct inode *inode)
|
|||
iput_final(inode);
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(iput);
|
||||
|
||||
/**
|
||||
|
@ -1425,7 +1416,6 @@ void file_update_time(struct file *file)
|
|||
mark_inode_dirty_sync(inode);
|
||||
mnt_drop_write(file->f_path.mnt);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(file_update_time);
|
||||
|
||||
int inode_needs_sync(struct inode *inode)
|
||||
|
@ -1436,7 +1426,6 @@ int inode_needs_sync(struct inode *inode)
|
|||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(inode_needs_sync);
|
||||
|
||||
int inode_wait(void *word)
|
||||
|
|
Загрузка…
Ссылка в новой задаче