]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Fix lseek after SEEK_DATA, SEEK_HOLE have been added
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 23 Aug 2011 09:19:25 +0000 (10:19 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 27 Oct 2011 08:08:04 +0000 (09:08 +0100)
commit8f58157ca19cdadde945ca8df120b70e678d8ab5
tree44ab0527e0b9d6c6b4e28403430adc3eabbac489
parent5e0df5d7a8b4ad5a46f2d37f8320b537f84591e2
GFS2: Fix lseek after SEEK_DATA, SEEK_HOLE have been added

We need to take the inode's glock whenever the inode's size
is referenced, otherwise it might not be uptodate. Even
though generic_file_llseek_unlocked() doesn't implement
SEEK_DATA, SEEK_HOLE directly, it does reference the inode's
size in those cases, so we need to add them to the list
of origins which need the glock.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
fs/gfs2/file.c