xfs: introduce xfs_bulkstat_grab_ichunk
authorJie Liu <jeff.liu@oracle.com>
Thu, 24 Jul 2014 08:42:21 +0000 (18:42 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Jul 2014 08:42:21 +0000 (18:42 +1000)
From: Jie Liu <jeff.liu@oracle.com>

Introduce xfs_bulkstat_grab_ichunk() to look up an inode chunk in where
the given inode resides, then grab the record.  Update the data for the
pointed-to record if the inode was not the last in the chunk and there
are some left allocated, return the grabbed inode count on success.

Refactor xfs_bulkstat() with it.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_itable.c

Simple merge