Skip to content

xfs_ioc_bulkstat code refactoring and consolidation

Jeff Liu linux-xfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 5 repliesIn review
  2. v210 patches 16 repliesSuperseded
  3. v110 patches 17 repliesSuperseded

v3->v2 from the cover letter

- one major bug fix is at xfs_bulkstat_ag_ichunk() regarding the user buffer pointer operations, it should be defined as a pointer-to-pointer since it would be updated inside xfs_bulkstat_ag_ichunk().

- separate xfs_inumber consolidate patch into two patches, the first one fix the formater function return value and consolidate the codes, another one does the actual logic changes for better error handling.

- Add a separate patch to get rid of the redundant user buffer count checks at xfs_bulkstat()

- fixed agino calculation issue at xfs_bulkstat_grab_ichunk().

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10xfs: remove redundant stat assignment in xfs_bulkstat_one_intfs/xfs/xfs_itable.c+1 -40 replies
2/10xfs: remove xfs_bulkstat_singlefs/xfs/xfs_ioctl.c fs/xfs/xfs_itable.c fs/xfs/xfs_itable.h+2 -570 replies
3/10xfs: consolidate xfs_inumbersfs/xfs/xfs_ioctl32.c fs/xfs/xfs_itable.c+35 -400 replies
4/10xfs: fix error handling at xfs_inumbersfs/xfs/xfs_itable.c+37 -541 reply
5/10xfs: remove redundant user buffer count checks at xfs_bulkstatfs/xfs/xfs_itable.c+0 -30 replies
6/10xfs: fix error handling at xfs_bulkstatfs/xfs/xfs_itable.c+6 -310 replies
7/10xfs: introduce xfs_bulkstat_ichunk_rafs/xfs/xfs_itable.c+32 -240 replies
8/10xfs: introduce xfs_bulkstat_grab_ichunkfs/xfs/xfs_itable.c+69 -500 replies
9/10xfs: introduce xfs_bulkstat_ag_ichunkfs/xfs/xfs_itable.c fs/xfs/xfs_itable.h+105 -540 replies
10/10xfs: mark xfs_qm_quotacheck as staticfs/xfs/xfs_qm.c fs/xfs/xfs_qm.h+94 -960 replies

Reviews trailers per patch

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

PatchChristoph HellwigJie Liu
1/10R-b
2/10R-b
3/10
4/10
5/10
6/10
7/10R-b
8/10
9/10
10/10R-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 00/10] xfs_ioc_bulkstat code refactoring and consolidation

Hi folk,

This is the revised patches for xfs_ioc_bulkstat consolidation and code refactoring. As per Christoph's comments, I'm not include the per AG inumber patch in this series given that I don't actually introduce the relevant inumbers interface now. Similar to that reason, I also dropped the per AG bulkstat patch, it would be included in parallel quota check series.

v3->v2:
- one major bug fix is at xfs_bulkstat_ag_ichunk() regarding the user buffer pointer operations, it should be defined as a pointer-to-pointer since it would be updated inside xfs_bulkstat_ag_ichunk().

- separate xfs_inumber consolidate patch into two patches, the first one fix the formater function return value and consolidate the codes, another one does the actual logic changes for better error handling.

- Add a separate patch to get rid of the redundant user buffer count checks at xfs_bulkstat()

- fixed agino calculation issue at xfs_bulkstat_grab_ichunk().

v2: http://oss.sgi.com/archives/xfs/2014-04/msg00554.html
v1: http://oss.sgi.com/archives/xfs/2013-12/msg00901.html

Any comments are welcome!

Cheers,
-Jeff

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs