Skip to content

Commit 128159f

Browse files
committed
NFS: Remove a redundant call to unmap_mapping_range()
We don't need to call unmap_mapping_range() prior to calling nfs_sync_mapping(). Signed-off-by: Trond Myklebust <[email protected]>
1 parent f34462c commit 128159f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/nfs/inode.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,6 @@ static int nfs_invalidate_mapping(struct inode *inode, struct address_space *map
11701170

11711171
if (mapping->nrpages != 0) {
11721172
if (S_ISREG(inode->i_mode)) {
1173-
unmap_mapping_range(mapping, 0, 0, 0);
11741173
ret = nfs_sync_mapping(mapping);
11751174
if (ret < 0)
11761175
return ret;

0 commit comments

Comments
 (0)