Skip to content

ocfs2: allocate blocks in direct I/O write

WeiWei Wang ocfs2-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ocfs2: eliminate the static flag of some functionsfs/ocfs2/file.c fs/ocfs2/file.h fs/ocfs2/namei.c +1 more+28 -200 replies
2/7ocfs2: add two functions of add and remove inode in orphan dirfs/ocfs2/namei.c fs/ocfs2/namei.h+149 -00 replies
3/7ocfs2: add orphan recovery types in ocfs2_recover_orphansfs/ocfs2/journal.c fs/ocfs2/journal.h fs/ocfs2/ocfs2.h+85 -160 replies
4/7ocfs2: add and remove inode in orphan dir in ocfs2_direct_IOfs/ocfs2/aops.c+114 -40 replies
5/7ocfs2: allocate blocks in ocfs2_direct_IO_get_blocksfs/ocfs2/aops.c+40 -00 replies
6/7ocfs2: do not fallback to buffer I/O write if appendingfs/ocfs2/aops.c fs/ocfs2/file.c+0 -150 replies
7/7ocfs2: do not fallback to buffer I/O write if fill holesfs/ocfs2/file.c+36 -510 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Ocfs2-devel] [PATCH 0/7] ocfs2: allocate blocks in direct I/O write

hi all,
In ocfs2 append I/O write and fill holes I/O write situation, blocks have not been allocated yet, so the direct I/O write will fallback to buffer I/O write. Buffer I/O write the data to page cache first, then flush the page cache to disk, this will consume some performance. In this patch, the direct I/O write doesn't not need to fallback to buffer I/O write any more because the allocate blocks are enabled in direct I/O now.

This patch set can be applied against 3.17-rc4 branch of ocfs2 directly.

Thanks,

							-- Wang

Weiwei Wang (7)
ocfs2: eliminate the static flag of some functions
ocfs2: add two functions of add and remove inode in orphan dir
ocfs2: add orphan recovery types in ocfs2_recover_orphans
ocfs2: add and remove inode to orphan in ocfs2_direct_IO
ocfs2: allocate blocks in ocfs2_direct_IO_get_blocks
ocfs2: do not fallback to buffer I/O write if appending
ocfs2: do not fallback to buffer I/O write if fill holes

 fs/ocfs2/aops.c    | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------
 fs/ocfs2/file.c    | 104 +++++++++++++++++++++++++++++++----------------------------------------------------
 fs/ocfs2/file.h    |   9 ++++++++
 fs/ocfs2/journal.c |  90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------
 fs/ocfs2/journal.h |   5 ++++
 fs/ocfs2/namei.c   | 161 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
---------
 fs/ocfs2/namei.h   |  21 ++++++++++++++++-
 fs/ocfs2/ocfs2.h   |   6 +++++
 8 files changed, 451 insertions(+), 105 deletions(-)