Parent Pointers v4
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest17 patches 51 repliesIn review
- v117 patches 43 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | Add helper functions xfs_attr_set_args and xfs_attr_remove_argsfs/ fs/ fs/ +1 more | +236 | 4 replies | |
| 2/17 | Set up infastructure for deferred attribute operationsfs/ fs/ fs/ +9 more | +1134 | 4 replies | |
| 3/17 | Add xfs_attr_set_defered and xfs_attr_remove_deferedfs/ fs/ | +67 | 2 replies | |
| 4/17 | Remove all strlen calls in all xfs_attr_* functions for attr names.fs/ fs/ fs/ +4 more | +43 | 2 replies | |
| 5/17 | xfs: get directory offset when adding directory namefs/ fs/ fs/ +6 more | +22 | 2 replies | |
| 6/17 | xfs: get directory offset when removing directory namefs/ fs/ fs/ +4 more | +26 | 2 replies | |
| 7/17 | xfs: get directory offset when replacing a directory namefs/ fs/ fs/ +4 more | +31 | 2 replies | |
| 8/17 | xfs: add parent pointer support to attribute codefs/ fs/ fs/ | +11 | 2 replies | |
| 9/17 | xfs: define parent pointer xattr formatfs/ | +27 | 2 replies | |
| 10/17 | xfs: extent transaction reservations for parent attributesfs/ fs/ | +85 | 2 replies | |
| 11/17 | Add the extra space requirements for parent pointer attributes when calculating the minimum log size during mkfsfs/ | +34 | 3 replies | |
| 12/17 | xfs: parent pointer attribute creationfs/ fs/ fs/ +1 more | +123 | 3 replies | |
| 13/17 | xfs: add parent attributes to linkfs/ | +47 | 2 replies | |
| 14/17 | xfs: remove parent pointers in unlinkfs/ fs/ fs/ | +33 | 2 replies | |
| 15/17 | Add parent pointers to renamefs/ fs/ | +24 | 2 replies | |
| 16/17 | Add the parent pointer support to the superblock version 5.fs/ fs/ fs/ +1 more | +13 | 2 replies | |
| 17/17 | Add parent pointer ioctlfs/ fs/ fs/ +2 more | +120 | 13 replies |
Reviews trailers per patch
2 of 17 patches have a Reviewed-by or Acked-by.
| Patch | Darrick J. Wong |
|---|---|
| 1/17 | |
| 2/17 | |
| 3/17 | |
| 4/17 | |
| 5/17 | |
| 6/17 | |
| 7/17 | |
| 8/17 | |
| 9/17 | R-b |
| 10/17 | |
| 11/17 | |
| 12/17 | |
| 13/17 | |
| 14/17 | |
| 15/17 | |
| 16/17 | R-b |
| 17/17 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/17] Parent Pointers v4
Hi all,
This is the fourth version of parent pointer attributes for xfs. The goal of this patch set is to add a parent pointer attribute to each inode. The attribute name containing the parent inode, generation, and directory offset, while the attribute value contains the file name. This feature will enable future optimizations for online scrub, or any other feature that could make use of quickly deriving an inodes path from the mount point. This set also introduces deferred attribute operations, though it is currently only used by
the new parent pointer code.
I've integrated the suggestions made since v3, the biggest of which I think was reducing the size of xfs_attr_log_item so that they didn't take up quite so much space, as well as merging the deferred attribute set and create code paths. I've also added a patch that implements a new ioctl interface to return the parent pointer to user space. I know Darrick already had some suggestions for the new ioctl code that I still need to add, but I wanted to keep the rest of the folks out here updated as to where I am with it now.
I'm still working on setting up some new xfstests for this patch set. I'll need to get the appropriate changes mapped to xfsprogs first, but I will keep folks updated as I go.
As always, comments and feedback are appreciated. Thank you!
Allison Henderson
Allison Henderson (8):
Add helper functions xfs_attr_set_args and xfs_attr_remove_args Set up infastructure for deferred attribute operations Add xfs_attr_set_defered and xfs_attr_remove_defered Remove all strlen calls in all xfs_attr_* functions for attr names. Add the extra space requirements for parent pointer attributes when
calculating the minimum log size during mkfs
Add parent pointers to rename
Add the parent pointer support to the superblock version 5. Add parent pointer ioctl
Dave Chinner (5):
xfs: define parent pointer xattr format
xfs: extent transaction reservations for parent attributes
xfs: parent pointer attribute creation
xfs: add parent attributes to link
xfs: remove parent pointers in unlink
Mark Tinguely (4):
xfs: get directory offset when adding directory name
xfs: get directory offset when removing directory name
xfs: get directory offset when replacing a directory name
xfs: add parent pointer support to attribute code
fs/xfs/Makefile | 3 + fs/xfs/libxfs/xfs_attr.c | 481 +++++++++++++++++++++++++++----------- fs/xfs/libxfs/xfs_bmap.c | 55 +++-- fs/xfs/libxfs/xfs_bmap.h | 1 + fs/xfs/libxfs/xfs_da_btree.h | 1 + fs/xfs/libxfs/xfs_da_format.h | 12 +- fs/xfs/libxfs/xfs_defer.h | 1 + fs/xfs/libxfs/xfs_dir2.c | 41 ++-- fs/xfs/libxfs/xfs_dir2.h | 10 +- fs/xfs/libxfs/xfs_dir2_block.c | 9 +- fs/xfs/libxfs/xfs_dir2_leaf.c | 8 +- fs/xfs/libxfs/xfs_dir2_node.c | 8 +- fs/xfs/libxfs/xfs_dir2_sf.c | 6 + fs/xfs/libxfs/xfs_format.h | 37 ++- fs/xfs/libxfs/xfs_fs.h | 2 + fs/xfs/libxfs/xfs_log_format.h | 37 ++- fs/xfs/libxfs/xfs_log_rlimit.c | 34 +++ fs/xfs/libxfs/xfs_parent.c | 113 +++++++++ fs/xfs/libxfs/xfs_trans_resv.c | 103 +++++++-- fs/xfs/libxfs/xfs_types.h | 1 + fs/xfs/xfs_acl.c | 12 +- fs/xfs/xfs_attr.h | 58 ++++- fs/xfs/xfs_attr_item.c | 513 +++++++++++++++++++++++++++++++++++++++++ fs/xfs/xfs_attr_item.h | 117 ++++++++++ fs/xfs/xfs_attr_list.c | 3 + fs/xfs/xfs_fsops.c | 4 +- fs/xfs/xfs_inode.c | 141 ++++++++--- fs/xfs/xfs_ioctl.c | 61 ++++- fs/xfs/xfs_iops.c | 6 +- fs/xfs/xfs_log_recover.c | 140 +++++++++++ fs/xfs/xfs_super.c | 5 + fs/xfs/xfs_symlink.c | 2 +- fs/xfs/xfs_trans.h | 13 ++ fs/xfs/xfs_trans_attr.c | 288 +++++++++++++++++++++++ fs/xfs/xfs_xattr.c | 10 +- 35 files changed, 2062 insertions(+), 274 deletions(-) create mode 100644 fs/xfs/libxfs/xfs_parent.c create mode 100644 fs/xfs/xfs_attr_item.c create mode 100644 fs/xfs/xfs_attr_item.h create mode 100644 fs/xfs/xfs_trans_attr.c
Signature · 1 line
2.7.4