aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/file.c
diff options
context:
space:
mode:
authorAbhi Das <adas@redhat.com>2016-05-02 08:07:01 -0400
committerBob Peterson <rpeterso@redhat.com>2016-05-02 08:07:01 -0400
commit80f4781d2c0ba63bf9ab4de90a6829a1368b80a3 (patch)
tree6bc3a75398ed95e6fd8b587c3270bf992f9b26b8 /fs/gfs2/file.c
parent9c7fe83530a351845719acf1dda0587e8c743588 (diff)
gfs2: use inode_lock/unlock instead of accessing i_mutex directly
i_mutex has been replaced by i_rwsem and directly accessing the non-existent i_mutex breaks the kernel build. Signed-off-by: Abhi Das <adas@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r--fs/gfs2/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index f33fd92e5f49..374dd5327101 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -960,16 +960,16 @@ static ssize_t gfs2_file_splice_read(struct file *in, loff_t *ppos,
960 struct gfs2_holder gh; 960 struct gfs2_holder gh;
961 int ret; 961 int ret;
962 962
963 mutex_lock(&inode->i_mutex); 963 inode_lock(inode);
964 964
965 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &gh); 965 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &gh);
966 if (ret) { 966 if (ret) {
967 mutex_unlock(&inode->i_mutex); 967 inode_unlock(inode);
968 return ret; 968 return ret;
969 } 969 }
970 970
971 gfs2_glock_dq_uninit(&gh); 971 gfs2_glock_dq_uninit(&gh);
972 mutex_unlock(&inode->i_mutex); 972 inode_unlock(inode);
973 973
974 return generic_file_splice_read(in, ppos, pipe, len, flags); 974 return generic_file_splice_read(in, ppos, pipe, len, flags);
975} 975}