diff options
| author | Dave Chinner <david@fromorbit.com> | 2014-08-04 13:54:46 +1000 |
|---|---|---|
| committer | Dave Chinner <david@fromorbit.com> | 2014-08-04 13:54:46 +1000 |
| commit | b076d8720d793cde04b75b4941b8774e209649b4 (patch) | |
| tree | 14f0aa5ac5850e2077076062340eb1ef15f7ccf1 /fs/xfs/xfs_itable.h | |
| parent | 4d7eece2c0dad832c5f224629eba3cced3f2d6cd (diff) | |
| parent | 1e773c4989d2dfe08332b4c18f7e1d7ad633015c (diff) | |
| download | linux-b076d8720d793cde04b75b4941b8774e209649b4.tar.gz linux-b076d8720d793cde04b75b4941b8774e209649b4.tar.bz2 linux-b076d8720d793cde04b75b4941b8774e209649b4.zip | |
Merge branch 'xfs-bulkstat-refactor' into for-next
Diffstat (limited to 'fs/xfs/xfs_itable.h')
| -rw-r--r-- | fs/xfs/xfs_itable.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/fs/xfs/xfs_itable.h b/fs/xfs/xfs_itable.h index 97295d91d170..aaed08022eb9 100644 --- a/fs/xfs/xfs_itable.h +++ b/fs/xfs/xfs_itable.h @@ -30,6 +30,22 @@ typedef int (*bulkstat_one_pf)(struct xfs_mount *mp, int *ubused, int *stat); +struct xfs_bulkstat_agichunk { + xfs_ino_t ac_lastino; /* last inode returned */ + char __user **ac_ubuffer;/* pointer into user's buffer */ + int ac_ubleft; /* bytes left in user's buffer */ + int ac_ubelem; /* spaces used in user's buffer */ +}; + +int +xfs_bulkstat_ag_ichunk( + struct xfs_mount *mp, + xfs_agnumber_t agno, + struct xfs_inobt_rec_incore *irbp, + bulkstat_one_pf formatter, + size_t statstruct_size, + struct xfs_bulkstat_agichunk *acp); + /* * Values for stat return value. */ @@ -50,13 +66,6 @@ xfs_bulkstat( char __user *ubuffer,/* buffer with inode stats */ int *done); /* 1 if there are more stats to get */ -int -xfs_bulkstat_single( - xfs_mount_t *mp, - xfs_ino_t *lastinop, - char __user *buffer, - int *done); - typedef int (*bulkstat_one_fmt_pf)( /* used size in bytes or negative error */ void __user *ubuffer, /* buffer to write to */ int ubsize, /* remaining user buffer sz */ |
