aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/localalloc.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-09-10 15:28:47 +0800
committerJoel Becker <joel.becker@oracle.com>2009-09-23 01:54:49 -0700
commitb80474b432913f73cce8db001e9fa3104f9b79ee (patch)
treead39c36ce3006167d02ca176eb140012c6530a06 /fs/ocfs2/localalloc.h
parentocfs2: add spinlock protection when dealing with lockres->purge. (diff)
downloadlinux-dev-b80474b432913f73cce8db001e9fa3104f9b79ee.tar.xz
linux-dev-b80474b432913f73cce8db001e9fa3104f9b79ee.zip
ocfs2: Use buffer IO if we are appending a file.
In ocfs2_file_aio_write, we will prevent direct io if we find that we are appending(changing i_size) and call generic_file_aio_write_nolock. But actually O_DIRECT flag is there and this function will call generic_file_direct_write eventually which will update i_size and leave di->i_size alone. The bug is http://oss.oracle.com/bugzilla/show_bug.cgi?id=1173. So this patch let ocfs2_direct_IO returns 0 directly if we are appending so that buffered write will be called and di->i_size get updated successfully. And this is also what we want in ocfs2_file_aio_write. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/localalloc.h')
0 files changed, 0 insertions, 0 deletions