Tristan Ye 81c8c82b5a Ocfs2: Fix a regression bug from mainline commit(6b933c8e6f1a2f3118082c455eef25f9b1ac7b45).
The patch is to fix the regression bug brought from commit 6b933c8...( 'ocfs2:
Avoid direct write if we fall back to buffered I/O'):

http://oss.oracle.com/bugzilla/show_bug.cgi?id=1285

The commit 6b933c8e6f1a2f3118082c455eef25f9b1ac7b45 changed __generic_file_aio_write
to generic_file_buffered_write, which didn't call filemap_{write,wait}_range to  flush
the pagecaches when we were falling O_DIRECT writes back to buffered ones. it did hurt
the O_DIRECT semantics somehow in extented odirect writes.

This patch tries to guarantee O_DIRECT writes of 'fall back to buffered' to be correctly
flushed.

Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
2010-09-08 14:25:57 +08:00
..
2009-10-28 23:05:57 -07:00
2010-08-09 16:47:29 -04:00
2009-09-22 20:09:36 -07:00
2010-09-08 14:25:53 +08:00
2009-07-21 15:47:55 -07:00
2009-04-03 11:39:16 -07:00
2009-10-28 23:05:57 -07:00
2008-10-13 13:57:57 -07:00
2010-05-05 18:17:30 -07:00
2010-05-05 18:18:07 -07:00
2010-05-05 18:17:30 -07:00
2010-05-21 18:31:20 -04:00