Skip to content

Refactor *_fs_sysfs_* helpers

Zorro Lang fstests linux-btrfs linux-xfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyIn review
  2. v26 patches 7 repliesSuperseded
  3. v15 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fstests: rename _*_fs_sysfs_attr helpers to _*_fs_sysfs_dev_attrcommon/btrfs common/rc common/sysfs +10 more+57 -570 replies
2/6fstests: consolidate _require_fs_sysfs and _require_fs_sysfs_dev_attrcommon/rc common/xfs tests/btrfs/253 +6 more+29 -251 reply
3/6common: move btrfs-only sysfs policy helpers out of common/sysfscommon/btrfs common/sysfs tests/btrfs/253 +2 more+139 -1520 replies
4/6common/rc: add helpers for /sys/fs/$FSTYP/features/common/rc+52 -00 replies
5/6common/rc: use common helper in _require_fanotify_ioerrors for f2fscommon/rc+2 -20 replies
6/6fstests: replace btrfs specific helpers with common sysfs helperscommon/btrfs common/rc tests/btrfs/010 +29 more+39 -780 replies

Reviews trailers per patch

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

PatchChristoph Hellwig
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/6] Refactor *_fs_sysfs_* helpers

As we talked in:
https://lore.kernel.org/fstests/amhKovVDjwawoWdQ@zlang-mailbox/

This patchset refactors two redundant and messy sets of *_fs_sysfs_* helpers (PATCH 1/6 2/6), move btrfs specific sysfs policy helpers to common/btrfs (PATCH 3/6), introduces helpers for /sys/fs/$FSTYP/features (PATCH 4/6), and replaces the original btrfs-specific helpers with these common ones (PATCH 6/6).

V2 did below changes:

1) According to review point:
https://lore.kernel.org/fstests/[email protected]/
split original patch 1/5 to two patches 1/6 and 2/6.
2) According to review point:
https://lore.kernel.org/fstests/[email protected]/
rename functions in common/sysfs and move them to common/btrfs.

V3 did below changes:
1) Address Christoph's review points on [PATCH 2/6] by introducing _require_{test,scratch}_sysfs_dev_attr and wrapping lines that were too long (Waiting for RVB).
2) Since an upcoming test case (btrfs/363) is also affected by [PATCH 6/6], I have rebased patch 6/6 and the entire patchset onto the latest patches-in-queue branch.

Thanks,
Zorro

Zorro Lang (6):
fstests: rename _*_fs_sysfs_attr helpers to _*_fs_sysfs_dev_attr
fstests: consolidate _require_fs_sysfs and _require_fs_sysfs_dev_attr
common: move btrfs-only sysfs policy helpers out of common/sysfs common/rc: add helpers for /sys/fs/$FSTYP/features/ common/rc: use common helper in _require_fanotify_ioerrors for f2fs
fstests: replace btrfs specific helpers with common sysfs helpers

 common/btrfs      | 176 ++++++++++++++++++++++++++++++++++++----------
 common/rc         | 109 +++++++++++++++++++++-------
 common/sysfs      | 145 --------------------------------------
 common/xfs        |  24 ++++---
 tests/btrfs/010   |   3 +-
 tests/btrfs/055   |   2 +-
 tests/btrfs/056   |   2 +-
 tests/btrfs/112   |   2 +-
 tests/btrfs/131   |   2 +-
 tests/btrfs/165   |   2 +-
 tests/btrfs/188   |   2 +-
 tests/btrfs/192   |   2 +-
 tests/btrfs/201   |   2 +-
 tests/btrfs/205   |   2 +-
 tests/btrfs/209   |   2 +-
 tests/btrfs/211   |   2 +-
 tests/btrfs/219   |   3 +-
 tests/btrfs/231   |   2 +-
 tests/btrfs/253   |  29 ++++----
 tests/btrfs/285   |   3 +-
 tests/btrfs/296   |   8 +--
 tests/btrfs/304   |   4 +-
 tests/btrfs/305   |   4 +-
 tests/btrfs/306   |   4 +-
 tests/btrfs/307   |   4 +-
 tests/btrfs/308   |   4 +-
 tests/btrfs/311   |   2 +-
 tests/btrfs/313   |   2 +-
 tests/btrfs/314   |   2 +-
 tests/btrfs/315   |   2 +-
 tests/btrfs/329   |   5 +-
 tests/btrfs/334   |   5 +-
 tests/btrfs/342   |   2 +-
 tests/btrfs/352   |   2 +-
 tests/btrfs/363   |   2 +-
 tests/f2fs/025    |   2 +-
 tests/generic/098 |   2 +-
 tests/generic/101 |   2 +-
 tests/xfs/006     |   4 +-
 tests/xfs/177     |   4 +-
 tests/xfs/264     |  14 ++--
 tests/xfs/668     |   6 +-
 tests/xfs/669     |   6 +-
 tests/xfs/670     |   2 +-
 44 files changed, 307 insertions(+), 303 deletions(-)
 delete mode 100644 common/sysfs
Signature · 1 line
2.56.0