projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f34462c
)
NFS: Remove a redundant call to unmap_mapping_range()
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Sun, 28 Jan 2018 14:34:51 +0000
(09:34 -0500)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Sun, 28 Jan 2018 14:35:54 +0000
(09:35 -0500)
We don't need to call unmap_mapping_range() prior to calling
nfs_sync_mapping().
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index deeb7d1097d018c81173b73f9ba502c844ccc137..49fba9ea5872853df5bdb9775938095f5322b867 100644
(file)
--- 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
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;