aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-06-07 14:34:48 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-08-09 16:48:37 -0400
commitb57922d97fd6f79b6dbe6db0c4fd30d219fa08c1 (patch)
tree1d39e9cd8e1c1f502fb7e985a08286859c69aa36 /fs/ecryptfs
parent45321ac54316eaeeebde0b5f728a1791e500974c (diff)
convert remaining ->clear_inode() to ->evict_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r--fs/ecryptfs/super.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ecryptfs/super.c b/fs/ecryptfs/super.c
index 0435886e4a9f..4b5de6c6e0fa 100644
--- a/fs/ecryptfs/super.c
+++ b/fs/ecryptfs/super.c
@@ -122,7 +122,7 @@ static int ecryptfs_statfs(struct dentry *dentry, struct kstatfs *buf)
122} 122}
123 123
124/** 124/**
125 * ecryptfs_clear_inode 125 * ecryptfs_evict_inode
126 * @inode - The ecryptfs inode 126 * @inode - The ecryptfs inode
127 * 127 *
128 * Called by iput() when the inode reference count reached zero 128 * Called by iput() when the inode reference count reached zero
@@ -131,8 +131,10 @@ static int ecryptfs_statfs(struct dentry *dentry, struct kstatfs *buf)
131 * on the inode free list. We use this to drop out reference to the 131 * on the inode free list. We use this to drop out reference to the
132 * lower inode. 132 * lower inode.
133 */ 133 */
134static void ecryptfs_clear_inode(struct inode *inode) 134static void ecryptfs_evict_inode(struct inode *inode)
135{ 135{
136 truncate_inode_pages(&inode->i_data, 0);
137 end_writeback(inode);
136 iput(ecryptfs_inode_to_lower(inode)); 138 iput(ecryptfs_inode_to_lower(inode));
137} 139}
138 140
@@ -184,6 +186,6 @@ const struct super_operations ecryptfs_sops = {
184 .drop_inode = generic_delete_inode, 186 .drop_inode = generic_delete_inode,
185 .statfs = ecryptfs_statfs, 187 .statfs = ecryptfs_statfs,
186 .remount_fs = NULL, 188 .remount_fs = NULL,
187 .clear_inode = ecryptfs_clear_inode, 189 .evict_inode = ecryptfs_evict_inode,
188 .show_options = ecryptfs_show_options 190 .show_options = ecryptfs_show_options
189}; 191};