[PATCH 6/10] xfs: introduce xfs_bulkstat_ichunk_ra
Jeff Liu
jeff.liu at oracle.com
Tue Dec 31 03:46:13 CST 2013
On 2013年12月31日 00:57, Mark Tinguely wrote:
> On 12/28/13 05:22, Jeff Liu wrote:
>> From: Jie Liu<jeff.liu at oracle.com>
>>
>> Introduce xfs_bulkstat_ichunk_ra() to loop over all clusters in
>> the next inode chunk, then performs readahead if there are any
>> allocated inodes in that cluster.
>>
>> Refactor xfs_bulkstat() with it.
>>
>> Signed-off-by: Jie Liu<jeff.liu at oracle.com>
>> ---
>
> Had some problems applying this patch.
> ...
>
>> +STATIC void
>> +xfs_bulkstat_ichunk_ra(
>> + struct xfs_mount *mp,
>> + xfs_agnumber_t agno,
>> + struct xfs_inobt_rec_incore *irec)
>> +{
>> + xfs_agblock_t agbno;
>> + struct blk_plug plug;
>> + int blks_per_cluster;
>> + int inodes_per_cluster;
>> + int i; /* inode chunk index */
>> +
>> + agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino);
>> + blks_per_cluster = xfs_icluster_size_fsb(mp);
> ^^^^^
> does not exist.
This patch series is based on my previous code refactoring of
introducing xfs_icluster_size_fsb() helper. I guess you would
apply this patch on top of that without the current problems.
Thanks,
-Jeff
More information about the xfs
mailing list