This patch has some issues:
1) cannot use ocfs2_clusters_for_bytes to calculate v_cpos, we need the
floor, not roof;
2) the return value (bytes written) of blockdev_direct_IO will be
override, which is not right.
On 2014/10/11 20:29, WeiWei Wang wrote:
Add the inode to orphan dir first, and then
On Sat, 11 Oct 2014 20:29:08 +0800 WeiWei Wang wangww...@huawei.com wrote:
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.
...
+static ssize_t ocfs2_direct_IO_write(struct kiocb
On Wed, 15 Oct 2014 16:42:44 -0700 Andrew Morton a...@linux-foundation.org
wrote:
On Sat, 11 Oct 2014 20:29:08 +0800 WeiWei Wang wangww...@huawei.com wrote:
Add the inode to orphan dir first, and then delete it once append
O_DIRECT finished.
This is to make sure block allocation and
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.
Signed-off-by: Weiwei Wang wangww...@huawei.com
Reviewed-by: Joseph Qi joseph...@huawei.com
---
fs/ocfs2/aops.c | 178