ocfs2: implement ocfs2_direct_IO_write
authorJoseph Qi <[email protected]>
Tue, 17 Feb 2015 00:00:00 +0000 (16:00 -0800)
committerLinus Torvalds <[email protected]>
Tue, 17 Feb 2015 01:56:05 +0000 (17:56 -0800)
commit24c40b329e03dd38a1ca2225c739db67f4441343
treeac44a8faee0103987e75fd01885042745d645421
parented460cffc26ba4ec663a89589d81290ca92c5010
ocfs2: implement ocfs2_direct_IO_write

Implement ocfs2_direct_IO_write.  Add the inode to orphan dir first, and
then delete it once append O_DIRECT finished.

This is to make sure block allocation and inode size are consistent.

[[email protected]: fix it for "block: Add discard flag to blkdev_issue_zeroout() function"]
Signed-off-by: Joseph Qi <[email protected]>
Cc: Weiwei Wang <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Xuejiufei <[email protected]>
Cc: alex chen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/aops.c
fs/ocfs2/ocfs2.h