[PATCH v3 00/10] xfs_ioc_bulkstat code refactoring and consolidation

Jeff Liu
2014-06-03T09:18:02Z

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!