Skip to content

libxfs: spring cleaning

Eric Sandeen linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11libxfs: remove i_transpinclude/xfs_inode.h libxfs/trans.c+0 -122 replies
2/11libxfs: remove xfs_inode_log_item ili_flagsinclude/xfs_trans.h libxfs/trans.c+1 -62 replies
3/11libxfs: remove unused cruftinclude/libxfs.h include/xfs_trans.h libxfs/libxfs_api_defs.h +2 more+0 -543 replies
4/11libxfs: rename bp_transp to b_transp in ASSERTslibxfs/trans.c+10 -102 replies
5/11libxfs: de-libxfsify core(-ish) functions.libxfs/libxfs_api_defs.h libxfs/trans.c+25 -243 replies
6/11libxfs: create new file trans_buf.clibxfs/Makefile libxfs/libxfs_priv.h libxfs/logitem.c +2 more+356 -3374 replies
7/11libxfs: create new file buf_item.clibxfs/Makefile libxfs/buf_item.c libxfs/libxfs_priv.h +2 more+149 -1320 replies
8/11libxfs: create new file inode_item.clibxfs/Makefile libxfs/inode_item.c libxfs/libxfs_priv.h +2 more+121 -1190 replies
9/11libxfs: create new file trans_inode.clibxfs/Makefile libxfs/trans.c libxfs/trans_inode.c+107 -860 replies
10/11libxfs: reorder trans.c to match xfs_trans.clibxfs/trans.c+121 -1300 replies
11/11libxfs: minor sync-ups to kernel-ish functionslibxfs/buf_item.c libxfs/inode_item.c libxfs/libxfs_priv.h +2 more+211 -1002 replies

Reviews trailers per patch

4 of 11 patches have a Reviewed-by or Acked-by.

PatchDave ChinnerChristoph Hellwig
1/11R-b R-b
2/11R-b R-b
3/11R-b R-b
4/11R-b R-b
5/11
6/11
7/11
8/11
9/11
10/11
11/11

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 00/11] libxfs: spring cleaning

The first 4 should be easy, just basic cleanups.

Patch 5 gets rid of some "libxfs-ification" of what I think are core libxfs functions that don't need the prefix, but please correct me if I've got that wrong.

Patches 6-10 are splitting out the misc functions we've accumulated over time in various files, and tries to re-organize them to more or less match their kernel counterparts. This is just a first step toward being able to see what we've got, and how we've diverged from kernelspace. Hopefully it'll help guide us to sharing more files - but in some cases it's only a couple shared functions, so maye splitting this way doesn't make sense.

Patch 11 is just cosmetic changes to the resulting kernel-ish files, to eliminate cosmetic differences and really start to show where things diverge. With all these patches applied, a graphical diff between userspace and kernelspace starts to make a little sense.

If the spawning of new files doesn't seem prudent, I could keep them all in 1 or 2 bigger files, but keep them in order to match the kernel, and achieve similar purposes. Curious to see what folks think.

My main goal with the 2nd half was to get things sliced, diced, and sorted enough that I could even spot the differences.

Thanks,
-Eric