commit | 9453615a1a7ef3fa910c6464a619595556cfcd63 | [log] [tgz] |
---|---|---|
author | Steven Whitehouse <swhiteho@redhat.com> | Tue Aug 23 10:19:25 2011 +0100 |
committer | Steven Whitehouse <swhiteho@redhat.com> | Fri Oct 21 12:39:29 2011 +0100 |
tree | 40242c84367376197420ce12e50ae29e720dc5e3 | |
parent | 9a63edd12ba3c18351f00d6b77a6b2f49f2b8eb6 [diff] |
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>