Skip to content

xfs: Log Attribute Replay

Allison Henderson linux-xfs 47 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v29 Latest15 patches 0 repliesNew
  2. v2815 patches 6 repliesSuperseded
  3. v2715 patches 7 repliesSuperseded
Earlier versions · 44
VersionPostedPatchesRepliesStatus
v2612 patches8 repliesSuperseded
v25 posting 2/214 patches1 replySuperseded
v25 posting 1/212 patches9 repliesSuperseded
v2411 patches26 repliesSuperseded
v22 posting 2/216 patches50 repliesSuperseded
v22 posting 1/227 patches1 replySuperseded
v2113 patches12 repliesSuperseded
v20 posting 2/25 of 14 patches4 repliesSuperseded
v20 posting 1/29 of 14 patches0 repliesSuperseded
v1914 patches12 repliesSuperseded
v18 posting 2/211 patches13 repliesSuperseded
v18 posting 1/211 patches4 repliesSuperseded
v17 posting 2/211 patches17 repliesSuperseded
v17 posting 1/212 patches0 repliesSuperseded
v16 posting 2/211 patches32 repliesSuperseded
v16 posting 1/228 patches0 repliesSuperseded
v15 posting 2/222 patches64 repliesSuperseded
v15 posting 1/237 patches0 repliesSuperseded
v14 posting 2/215 patches32 repliesSuperseded
v14 posting 1/214 patches0 repliesSuperseded
v13 posting 2/210 patches47 repliesSuperseded
v13 posting 1/214 patches4 repliesSuperseded
v12 posting 2/28 patches12 repliesSuperseded
v12 posting 1/232 patches0 repliesSuperseded
v11 posting 2/225 patches22 repliesSuperseded
v11 posting 1/226 patches0 repliesSuperseded
v10 posting 2/226 patches0 repliesSuperseded
v10 posting 1/225 patches11 repliesSuperseded
v9 posting 2/224 patches51 repliesSuperseded
v9 posting 1/243 patches2 repliesSuperseded
v8 posting 2/220 patches49 repliesSuperseded
v8 posting 1/239 patches0 repliesSuperseded
v7 posting 2/219 patches115 repliesSuperseded
v7 posting 1/220 patches0 repliesSuperseded
v6 posting 2/216 patches27 repliesSuperseded
v6 posting 1/217 patches0 repliesSuperseded
v5 posting 2/214 patches0 repliesSuperseded
v5 posting 1/214 patches36 repliesSuperseded
v4 posting 2/217 patches0 repliesSuperseded
v4 posting 1/217 patches59 repliesSuperseded
v2 posting 2/221 patches0 repliesSuperseded
v319 patches44 repliesSuperseded
v2 posting 1/218 patches37 repliesSuperseded
v19 patches38 repliesSuperseded

Patches in v29 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15xfs: Fix double unlock in defer capture codefs/xfs/libxfs/xfs_defer.c+10 -10 replies
2/15xfs: don't commit the first deferred transaction without intentsfs/xfs/libxfs/xfs_defer.c+10 -30 replies
3/15xfs: Return from xfs_attr_set_iter if there are no more rmtblks to processfs/xfs/libxfs/xfs_attr.c+8 -00 replies
4/15xfs: Set up infrastructure for log attribute replayfs/xfs/Makefile fs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_attr.h +14 more+661 -60 replies
5/15xfs: Implement attr logging and replayfs/xfs/libxfs/xfs_defer.c fs/xfs/libxfs/xfs_defer.h fs/xfs/libxfs/xfs_format.h +1 more+370 -10 replies
6/15xfs: Skip flip flags for delayed attrsfs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_attr_leaf.c+35 -220 replies
7/15xfs: Add xfs_attr_set_deferred and xfs_attr_remove_deferredfs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_attr.h fs/xfs/xfs_log.c +1 more+112 -30 replies
8/15xfs: Remove unused xfs_attr_*_argsfs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_attr.h fs/xfs/libxfs/xfs_attr_remote.c +1 more+14 -1100 replies
9/15xfs: Add log attribute error tagfs/xfs/libxfs/xfs_errortag.h fs/xfs/xfs_attr_item.c fs/xfs/xfs_error.c+13 -10 replies
10/15xfs: Add larp debug optionfs/xfs/libxfs/xfs_attr.h fs/xfs/xfs_globals.c fs/xfs/xfs_sysctl.h +1 more+30 -00 replies
11/15xfs: Merge xfs_delattr_context into xfs_attr_itemfs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_attr.h fs/xfs/libxfs/xfs_attr_remote.c +2 more+147 -1470 replies
12/15xfs: Add helper function xfs_attr_leaf_addnamefs/xfs/libxfs/xfs_attr.c fs/xfs/xfs_trace.h+61 -500 replies
13/15xfs: Add helper function xfs_init_attr_transfs/xfs/libxfs/xfs_attr.c fs/xfs/libxfs/xfs_attr.h fs/xfs/xfs_attr_item.c+27 -200 replies
14/15xfs: add leaf split error tagfs/xfs/libxfs/xfs_da_btree.c fs/xfs/libxfs/xfs_errortag.h fs/xfs/xfs_error.c+10 -10 replies
15/15xfs: add leaf to node error tagfs/xfs/libxfs/xfs_attr_leaf.c fs/xfs/libxfs/xfs_errortag.h fs/xfs/xfs_error.c+12 -10 replies

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by.

PatchChandan Babu RDarrick J. WongAllison Henderson
1/15R-b
2/15R-b R-b
3/15R-b R-b
4/15R-b R-b
5/15R-b R-b
6/15R-b R-b
7/15R-b R-b
8/15R-b R-b
9/15R-b R-b
10/15R-b R-b
11/15R-b R-b
12/15R-b R-b
13/15R-b R-b
14/15R-b R-b R-b
15/15R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v29 thread

Cover letter [PATCH v29 00/15] xfs: Log Attribute Replay

Hi all,

This set is a subset of a larger series parent pointers. Delayed attributes allow attribute operations (set and remove) to be logged and committed in the same way that other delayed operations do. This allows more complex operations (like parent pointers) to be broken up into multiple smaller transactions. To do this, the existing attr operations must be modified to operate as a delayed operation. This means that they cannot roll, commit, or finish transactions. Instead, they return -EAGAIN to allow the calling function to handle the transaction. In this series, we focus on only the delayed attribute portion. We will introduce parent pointers in a later set.

The set as a whole is a bit much to digest at once, so I usually send out the smaller sub series to reduce reviewer burn out. But the entire extended series is visible through the included github links.

Updates since v28:
xfs: Set up infrastructure for log attribute replay
Fixed xfs_attri_init to initialize shadow buffers for name/value

xfs: Implement attr logging and replay
Updated calls to xfs_attri_init

This series can be viewed on github here:
https://github.com/allisonhenderson/xfs_work/tree/delayed_attrs_v29

As well as the extended delayed attribute and parent pointer series:
https://github.com/allisonhenderson/xfs_work/tree/delayed_attrs_v29_extended

Thanks all!
Allison

Allison Henderson (15):
xfs: Fix double unlock in defer capture code
xfs: don't commit the first deferred transaction without intents
xfs: Return from xfs_attr_set_iter if there are no more rmtblks to
process
xfs: Set up infrastructure for log attribute replay
xfs: Implement attr logging and replay
xfs: Skip flip flags for delayed attrs
xfs: Add xfs_attr_set_deferred and xfs_attr_remove_deferred
xfs: Remove unused xfs_attr_*_args
xfs: Add log attribute error tag
xfs: Add larp debug option
xfs: Merge xfs_delattr_context into xfs_attr_item
xfs: Add helper function xfs_attr_leaf_addname
xfs: Add helper function xfs_init_attr_trans
xfs: add leaf split error tag
xfs: add leaf to node error tag

 fs/xfs/Makefile                 |   1 +
 fs/xfs/libxfs/xfs_attr.c        | 524 ++++++++++++---------
 fs/xfs/libxfs/xfs_attr.h        |  70 ++-
 fs/xfs/libxfs/xfs_attr_leaf.c   |   9 +-
 fs/xfs/libxfs/xfs_attr_remote.c |  37 +-
 fs/xfs/libxfs/xfs_attr_remote.h |   6 +-
 fs/xfs/libxfs/xfs_da_btree.c    |   4 +
 fs/xfs/libxfs/xfs_defer.c       |  35 +-
 fs/xfs/libxfs/xfs_defer.h       |   3 +
 fs/xfs/libxfs/xfs_errortag.h    |   8 +-
 fs/xfs/libxfs/xfs_format.h      |   9 +-
 fs/xfs/libxfs/xfs_log_format.h  |  44 +-
 fs/xfs/libxfs/xfs_log_recover.h |   2 +
 fs/xfs/scrub/common.c           |   2 +
 fs/xfs/xfs_attr_item.c          | 810 ++++++++++++++++++++++++++++++++
 fs/xfs/xfs_attr_item.h          |  46 ++
 fs/xfs/xfs_attr_list.c          |   1 +
 fs/xfs/xfs_error.c              |   9 +
 fs/xfs/xfs_globals.c            |   1 +
 fs/xfs/xfs_ioctl32.c            |   2 +
 fs/xfs/xfs_iops.c               |   2 +
 fs/xfs/xfs_log.c                |  45 ++
 fs/xfs/xfs_log.h                |  12 +
 fs/xfs/xfs_log_recover.c        |   2 +
 fs/xfs/xfs_ondisk.h             |   2 +
 fs/xfs/xfs_sysctl.h             |   1 +
 fs/xfs/xfs_sysfs.c              |  24 +
 fs/xfs/xfs_trace.h              |   1 +
 28 files changed, 1433 insertions(+), 279 deletions(-)
 create mode 100644 fs/xfs/xfs_attr_item.c
 create mode 100644 fs/xfs/xfs_attr_item.h
Signature · 1 line
2.25.1