ocfs2: Commit journal on sync writes
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 18 Oct 2007 21:14:45 +0000 (14:14 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 6 Nov 2007 23:32:00 +0000 (15:32 -0800)
commit9ea2d32f40434589ea0e136373f7d1545afb411f
tree2bc258fcaae4769a7b41ae71725eb073de33aded
parent9f70968af3e6e21612e06e153aa71c62dee5a09b
ocfs2: Commit journal on sync writes

We're missing a meta data commit for extending sync writes. In thoery, write
could return with the meta data required to read the data uncommitted to
disk. Fix that by detecting an allocating write and forcing a journal commit
in the sync case.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/file.c