On 2013å12æ31æ 00:57, Mark Tinguely wrote:
> On 12/28/13 05:22, Jeff Liu wrote:
>> From: Jie Liu<jeff.liu@xxxxxxxxxx>
>>
>> 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@xxxxxxxxxx>
>> ---
>
> 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
|