From: Trond Myklebust Date: Sun, 28 Jan 2018 14:34:51 +0000 (-0500) Subject: NFS: Remove a redundant call to unmap_mapping_range() X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~6084^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=128159f2929ef398698c28a4177eca1c1b88aa74;p=mirror_ubuntu-focal-kernel.git 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 --- 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 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;