Skip to content

Commit 350cd9b

Browse files
committed
fs/9p: remove unnecessary invalidate_inode_pages2
There was an invalidate_inode_pages2 added to readonly mmap path that is unnecessary since that path is only entered when writeback cache is disabled on mount. Cc: [email protected] Fixes: 1543b4c ("fs/9p: remove writeback fid and fix per-file modes") Reviewed-by: Christian Schoenebeck <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent 09430ab commit 350cd9b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/9p/vfs_file.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma)
506506

507507
if (!(v9ses->cache & CACHE_WRITEBACK)) {
508508
p9_debug(P9_DEBUG_CACHE, "(read-only mmap mode)");
509-
invalidate_inode_pages2(filp->f_mapping);
510509
return generic_file_readonly_mmap(filp, vma);
511510
}
512511

0 commit comments

Comments
 (0)