Re: [PATCH 6/10] xfs: introduce xfs_bulkstat_ichunk_ra

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs





[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux