Skip to content

Commit

Permalink
NFS: Remove a redundant call to unmap_mapping_range()
Browse files Browse the repository at this point in the history
We don't need to call unmap_mapping_range() prior to calling
nfs_sync_mapping().

Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
trondmypd committed Jan 28, 2018
1 parent f34462c commit 128159f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/nfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,6 @@ static int nfs_invalidate_mapping(struct inode *inode, struct address_space *map

if (mapping->nrpages != 0) {
if (S_ISREG(inode->i_mode)) {
unmap_mapping_range(mapping, 0, 0, 0);
ret = nfs_sync_mapping(mapping);
if (ret < 0)
return ret;
Expand Down

0 comments on commit 128159f

Please sign in to comment.