aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 20914f5627dd..5574a42b7bb6 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -330,8 +330,10 @@ cifs_destroy_inode(struct inode *inode)
330} 330}
331 331
332static void 332static void
333cifs_clear_inode(struct inode *inode) 333cifs_evict_inode(struct inode *inode)
334{ 334{
335 truncate_inode_pages(&inode->i_data, 0);
336 end_writeback(inode);
335 cifs_fscache_release_inode_cookie(inode); 337 cifs_fscache_release_inode_cookie(inode);
336} 338}
337 339
@@ -495,7 +497,7 @@ static const struct super_operations cifs_super_ops = {
495 .alloc_inode = cifs_alloc_inode, 497 .alloc_inode = cifs_alloc_inode,
496 .destroy_inode = cifs_destroy_inode, 498 .destroy_inode = cifs_destroy_inode,
497 .drop_inode = cifs_drop_inode, 499 .drop_inode = cifs_drop_inode,
498 .clear_inode = cifs_clear_inode, 500 .evict_inode = cifs_evict_inode,
499/* .delete_inode = cifs_delete_inode, */ /* Do not need above 501/* .delete_inode = cifs_delete_inode, */ /* Do not need above
500 function unless later we add lazy close of inodes or unless the 502 function unless later we add lazy close of inodes or unless the
501 kernel forgets to call us with the same number of releases (closes) 503 kernel forgets to call us with the same number of releases (closes)