summaryrefslogtreecommitdiff
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2021-04-12 15:50:21 +0200
committerJan Kara <jack@suse.cz>2021-07-12 18:31:16 +0200
commit9608703e488cf7a711c42c7ccd981c32377f7b78 (patch)
treea8d1ede6b0932cad4588fa242ce258defc4ffed7 /mm/madvise.c
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-rpi-9608703e488cf7a711c42c7ccd981c32377f7b78.tar.gz
linux-rpi-9608703e488cf7a711c42c7ccd981c32377f7b78.tar.bz2
linux-rpi-9608703e488cf7a711c42c7ccd981c32377f7b78.zip
mm: Fix comments mentioning i_mutex
inode->i_mutex has been replaced with inode->i_rwsem long ago. Fix comments still mentioning i_mutex. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Acked-by: Hugh Dickins <hughd@google.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'mm/madvise.c')
-rw-r--r--mm/madvise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/madvise.c b/mm/madvise.c
index 6d3d348b17f4..012129fbfaf8 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -910,7 +910,7 @@ static long madvise_remove(struct vm_area_struct *vma,
+ ((loff_t)vma->vm_pgoff << PAGE_SHIFT);
/*
- * Filesystem's fallocate may need to take i_mutex. We need to
+ * Filesystem's fallocate may need to take i_rwsem. We need to
* explicitly grab a reference because the vma (and hence the
* vma's reference to the file) can go away as soon as we drop
* mmap_lock.