gfs2: Use gfs2 wrapper to sync inode before calling generic_file_splice_read()
authorAbhi Das <adas@redhat.com>
Tue, 5 Apr 2016 16:06:15 +0000 (12:06 -0400)
committerBob Peterson <rpeterso@redhat.com>
Tue, 5 Apr 2016 16:06:15 +0000 (12:06 -0400)
commit611526756a3d0fa7f4d1c519397ba8898f40443f
tree170614d6a447935a0230d228415ea5a5c7c4b7c6
parent73cc86252bd8a547349d2856497eceaf4f2d1766
gfs2: Use gfs2 wrapper to sync inode before calling generic_file_splice_read()

gfs2_file_splice_read() f_op grabs and releases the cluster-wide
inode glock to sync the inode size to the latest.

Without this, generic_file_splice_read() uses an older i_size value
and can return EOF for valid offsets in the inode.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/file.c