aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-05-03 08:48:02 -0400
committerFengguang Wu <fengguang.wu@intel.com>2012-05-06 01:43:41 -0400
commitdbd5768f87ff6fb0a4fe09c4d7b6c4a24de99430 (patch)
tree42ea94ea733538f797aa745945fc43c4d1b89217 /include/linux/fs.h
parent7994e6f7254354e03028a11f98a27bd67dace9f1 (diff)
vfs: Rename end_writeback() to clear_inode()
After we moved inode_sync_wait() from end_writeback() it doesn't make sense to call the function end_writeback() anymore. Rename it to clear_inode() which well says what the function really does - set I_CLEAR flag. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 8de675523e46..c79316c79ee3 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1744,8 +1744,8 @@ struct super_operations {
1744 * I_FREEING Set when inode is about to be freed but still has dirty 1744 * I_FREEING Set when inode is about to be freed but still has dirty
1745 * pages or buffers attached or the inode itself is still 1745 * pages or buffers attached or the inode itself is still
1746 * dirty. 1746 * dirty.
1747 * I_CLEAR Added by end_writeback(). In this state the inode is clean 1747 * I_CLEAR Added by clear_inode(). In this state the inode is
1748 * and can be destroyed. Inode keeps I_FREEING. 1748 * clean and can be destroyed. Inode keeps I_FREEING.
1749 * 1749 *
1750 * Inodes that are I_WILL_FREE, I_FREEING or I_CLEAR are 1750 * Inodes that are I_WILL_FREE, I_FREEING or I_CLEAR are
1751 * prohibited for many purposes. iget() must wait for 1751 * prohibited for many purposes. iget() must wait for
@@ -2328,7 +2328,7 @@ extern unsigned int get_next_ino(void);
2328 2328
2329extern void __iget(struct inode * inode); 2329extern void __iget(struct inode * inode);
2330extern void iget_failed(struct inode *); 2330extern void iget_failed(struct inode *);
2331extern void end_writeback(struct inode *); 2331extern void clear_inode(struct inode *);
2332extern void __destroy_inode(struct inode *); 2332extern void __destroy_inode(struct inode *);
2333extern struct inode *new_inode_pseudo(struct super_block *sb); 2333extern struct inode *new_inode_pseudo(struct super_block *sb);
2334extern struct inode *new_inode(struct super_block *sb); 2334extern struct inode *new_inode(struct super_block *sb);