summaryrefslogtreecommitdiffstats
path: root/fs/afs/validation.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/validation.c')
-rw-r--r--fs/afs/validation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/validation.c b/fs/afs/validation.c
index 32a53fc8df..bef8af12eb 100644
--- a/fs/afs/validation.c
+++ b/fs/afs/validation.c
@@ -365,9 +365,9 @@ static void afs_zap_data(struct afs_vnode *vnode)
* written back in a regular file and completely discard the pages in a
* directory or symlink */
if (S_ISREG(vnode->netfs.inode.i_mode))
- invalidate_remote_inode(&vnode->netfs.inode);
+ filemap_invalidate_inode(&vnode->netfs.inode, true, 0, LLONG_MAX);
else
- invalidate_inode_pages2(vnode->netfs.inode.i_mapping);
+ filemap_invalidate_inode(&vnode->netfs.inode, false, 0, LLONG_MAX);
}
/*