summaryrefslogtreecommitdiffstats
path: root/fs/xattr_acl.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-12-08 10:25:33 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2010-01-08 13:42:27 +0000
commit56aa616a03feca630d5afce647367a5d8cfc67b8 (patch)
treea4b4feb0d2ac0f329b98748445adb90a6458a2e9 /fs/xattr_acl.c
parent74d2e4f8d79ae0c4b6ec027958d5b18058662eea (diff)
GFS2: Ensure uptodate inode size when using O_APPEND
The VFS reads the inode size during generic_file_aio_write() but with no locking around it. In order to get the expected result from O_APPEND opens, this patch updated the inode size before calling generic_file_aio_write() There is of course still a race here, in that there is nothing to prevent another node coming in and extending the file in the mean time. On the other hand, when used with file locking this will ensure that the expected results are obtained. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/xattr_acl.c')
0 files changed, 0 insertions, 0 deletions