ocfs2: honor O_(D)SYNC flag in fallocate
authorMark Fasheh <mfasheh@suse.de>
Wed, 16 Nov 2011 20:03:10 +0000 (12:03 -0800)
committerJoel Becker <jlbec@evilplan.org>
Thu, 17 Nov 2011 10:15:58 +0000 (02:15 -0800)
commitdf295d4a4b3c98af1a2445a82aef169e7e5d96b8
treee262858cac79bdffe8e139aa5d445e0b4bb9b8a0
parent0393afea31874947b1d149b82d17b7dccac4f210
ocfs2: honor O_(D)SYNC flag in fallocate

We need to sync the transaction which updates i_size if the file is marked
as needing sync semantics.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/file.c