From: Steven Whitehouse Date: Tue, 23 Aug 2011 09:19:25 +0000 (+0100) Subject: GFS2: Fix lseek after SEEK_DATA, SEEK_HOLE have been added X-Git-Tag: v3.2-rc1~132^2~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9453615a1a7ef3fa910c6464a619595556cfcd63;p=pandora-kernel.git 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 Cc: Andi Kleen --- Reading git-diff-tree failed