summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/bmap.c2
-rw-r--r--fs/gfs2/ops_fstype.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 685c305cbeb6..278ed0869c3c 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -1744,7 +1744,7 @@ do_grow_qunlock:
1744 * @newsize: the size to make the file 1744 * @newsize: the size to make the file
1745 * 1745 *
1746 * The file size can grow, shrink, or stay the same size. This 1746 * The file size can grow, shrink, or stay the same size. This
1747 * is called holding i_mutex and an exclusive glock on the inode 1747 * is called holding i_rwsem and an exclusive glock on the inode
1748 * in question. 1748 * in question.
1749 * 1749 *
1750 * Returns: errno 1750 * Returns: errno
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c
index e6a0a8a89ea7..3ba3f167641c 100644
--- a/fs/gfs2/ops_fstype.c
+++ b/fs/gfs2/ops_fstype.c
@@ -825,7 +825,7 @@ static int init_inodes(struct gfs2_sbd *sdp, int undo)
825 goto fail_rindex; 825 goto fail_rindex;
826 } 826 }
827 /* 827 /*
828 * i_mutex on quota files is special. Since this inode is hidden system 828 * i_rwsem on quota files is special. Since this inode is hidden system
829 * file, we are safe to define locking ourselves. 829 * file, we are safe to define locking ourselves.
830 */ 830 */
831 lockdep_set_class(&sdp->sd_quota_inode->i_rwsem, 831 lockdep_set_class(&sdp->sd_quota_inode->i_rwsem,