]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
NFS: Remove a redundant call to unmap_mapping_range()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 28 Jan 2018 14:34:51 +0000 (09:34 -0500)
committerTrond 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

index deeb7d1097d018c81173b73f9ba502c844ccc137..49fba9ea5872853df5bdb9775938095f5322b867 100644 (file)
@@ -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;