Skip to content

hoist uuid helpers from xfs to linux/uuid.h

Amir Goldstein linux-fsdevel linux-unionfs linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest8 patches 9 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8xfs: use uuid_copy() helper to abstract uuid_tfs/xfs/xfs_inode_item.c+2 -61 reply
2/8xfs: re-define uuid_t as common struct uuid_v1fs/xfs/uuid.h include/linux/uuid.h+3 -55 replies
3/8xfs: dismiss xfs_uu_tfs/xfs/uuid.c+4 -141 reply
4/8xfs: namespace the helper uuid_getnodeuniq()fs/xfs/uuid.c fs/xfs/uuid.h fs/xfs/xfs_mount.c+4 -41 reply
5/8md: namespace private helper namesdrivers/md/md.c+4 -40 replies
6/8linux/uuid.h: hoist helpers uuid_equal() and uuid_copy() from xfsfs/xfs/uuid.c fs/xfs/uuid.h include/linux/uuid.h+10 -130 replies
7/8linux/uuid.h: hoist uuid_is_null() helper from libnvdimmdrivers/nvdimm/btt_devs.c include/linux/uuid.h lib/uuid.c+12 -81 reply
8/8xfs: use the common helper uuid_is_null()fs/xfs/uuid.c fs/xfs/uuid.h fs/xfs/xfs_log_recover.c +1 more+7 -220 replies

Reviews trailers per patch

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

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

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

Read the v2 thread

Cover letter [PATCH v2 0/8] hoist uuid helpers from xfs to linux/uuid.h

Darick,

I moved some code around to be able to hoist all the generic xfs uuid helpers to linux/uuid.h, so that other filesystems and uuid related code in the kernel can use them.

Let me know what you think of the outcome.

I did not find any uuid related regressions with xfs. Specifically, the following xfstests exercise these changes:
xfs/045 xfs/073 xfs/077 (multi uuid mount) generic/079 xfs/238 xfs/269 xfs/062 (fshandle)

Some of these helpers are quite similar to thier uuid_{le|be} variants in linux/uuid.h, but at the moment I don't see xfs or any filesystem starting to use the uuid_{le|be} helpers, so we probably have to live with this duplicity for a while longer.

Amir.

Amir Goldstein (8):
xfs: use uuid_copy() helper to abstract uuid_t
xfs: re-define uuid_t as common struct uuid_v1
xfs: dismiss xfs_uu_t
xfs: namespace the helper uuid_getnodeuniq()
md: namespace private helper names
linux/uuid.h: hoist helpers uuid_equal() and uuid_copy() from xfs linux/uuid.h: hoist uuid_is_null() helper from libnvdimm
xfs: use the common helper uuid_is_null()

 drivers/md/md.c           |  8 ++++----
 drivers/nvdimm/btt_devs.c | 10 ++--------
 fs/xfs/uuid.c             | 42 ++++++------------------------------------
 fs/xfs/uuid.h             | 14 ++------------
 fs/xfs/xfs_inode_item.c   |  8 ++------
 fs/xfs/xfs_log_recover.c  |  6 +++---
 fs/xfs/xfs_mount.c        | 10 +++++-----
 include/linux/uuid.h      | 21 +++++++++++++++++++--
 lib/uuid.c                |  3 +++
 9 files changed, 46 insertions(+), 76 deletions(-)
Signature · 1 line
2.7.4