ocfs2: Clean up the checks for CoW and direct I/O.
authorWengang Wang <wen.gang.wang@oracle.com>
Tue, 9 Feb 2010 06:57:45 +0000 (14:57 +0800)
committerJoel Becker <joel.becker@oracle.com>
Fri, 26 Feb 2010 23:41:07 +0000 (15:41 -0800)
commit96a1cc731adb28dc4feb71701091b80e67d486a7
tree0220e211d3468b18e288d77bc828b6101adc9245
parentb89c54282db0c8634a2d2dc200f196d571750ce5
ocfs2: Clean up the checks for CoW and direct I/O.

When ocfs2 has to do CoW for refcounted extents, we disable direct I/O
and go through the buffered I/O path.  This makes the combined check
easier to read.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/file.c