diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-01-28 09:34:51 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-01-28 09:35:54 -0500 |
commit | 128159f2929ef398698c28a4177eca1c1b88aa74 (patch) | |
tree | 9b09fb456e531287d7413d20840f22e8c3cb7cd0 | |
parent | f34462c3c8a2ec0f09003b526c4d7c08782d9350 (diff) |
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 <trond.myklebust@primarydata.com>
-rw-r--r-- | fs/nfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index deeb7d1097d0..49fba9ea5872 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1170,7 +1170,6 @@ static int nfs_invalidate_mapping(struct inode *inode, struct address_space *map | |||
1170 | 1170 | ||
1171 | if (mapping->nrpages != 0) { | 1171 | if (mapping->nrpages != 0) { |
1172 | if (S_ISREG(inode->i_mode)) { | 1172 | if (S_ISREG(inode->i_mode)) { |
1173 | unmap_mapping_range(mapping, 0, 0, 0); | ||
1174 | ret = nfs_sync_mapping(mapping); | 1173 | ret = nfs_sync_mapping(mapping); |
1175 | if (ret < 0) | 1174 | if (ret < 0) |
1176 | return ret; | 1175 | return ret; |