Skip to content

RFC xfs: refactor ordered buffer logging code

Brian Foster linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: refactor buffer logging into buffer dirtying helperfs/xfs/xfs_trans.h fs/xfs/xfs_trans_buf.c+33 -171 reply
2/2xfs: don't log dirty ranges for ordered buffersfs/xfs/libxfs/xfs_btree.c fs/xfs/libxfs/xfs_ialloc.c fs/xfs/xfs_trans_buf.c+15 -153 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RFC 0/2] xfs: refactor ordered buffer logging code

Hi all,

Here's an initial refactoring based on the discussion on Alex's empty xattr leaf buffer holding patch [1]. These patches split off some of xfs_trans_log_buf() into a new helper and update xfs_trans_ordered_buf() to use it and thus eliminate the need to log dirty ranges on ordered buffers. The secondary purpose here is to create a function that we can call from deferred ops processing to relog an already dirty/held buffer across transaction rolls.

Note that this has only been very lightly tested and I might have one or two more cleanups to tack on. Thoughts, reviews, flames appreciated...

Brian

[1] http://marc.info/?l=linux-xfs&m=150227679029089&w=2

Brian Foster (2):
xfs: refactor buffer logging into buffer dirtying helper
xfs: don't log dirty ranges for ordered buffers

 fs/xfs/libxfs/xfs_btree.c  |  3 +-
 fs/xfs/libxfs/xfs_ialloc.c |  2 --
 fs/xfs/xfs_trans.h         |  4 ++-
 fs/xfs/xfs_trans_buf.c     | 71 ++++++++++++++++++++++++++++------------------
 4 files changed, 48 insertions(+), 32 deletions(-)
Signature · 1 line
2.9.4