ocfs2: Integrate CoW in file write.
authorTao Ma <tao.ma@oracle.com>
Tue, 25 Aug 2009 00:02:48 +0000 (08:02 +0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 23 Sep 2009 03:09:37 +0000 (20:09 -0700)
commit293b2f70b4a16a1ca91efd28ef3d6634262c6887
tree4a85078faae7c529fa313d4964e0d6ad0905a612
parent6ae23c5555176c5b23480c9c578ff27437085ba5
ocfs2: Integrate CoW in file write.

When we use mmap, we CoW the refcountd clusters in
ocfs2_write_begin_nolock. While for normal file
io(including directio), we do CoW in
ocfs2_prepare_inode_for_write.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/aops.c
fs/ocfs2/file.c
fs/ocfs2/file.h