|
@@ -383,11 +383,13 @@ xfs_bulkstat(
|
|
|
* Also start read-ahead now for this chunk.
|
|
|
*/
|
|
|
if (r.ir_freecount < XFS_INODES_PER_CHUNK) {
|
|
|
+ struct blk_plug plug;
|
|
|
/*
|
|
|
* Loop over all clusters in the next chunk.
|
|
|
* Do a readahead if there are any allocated
|
|
|
* inodes in that cluster.
|
|
|
*/
|
|
|
+ blk_start_plug(&plug);
|
|
|
agbno = XFS_AGINO_TO_AGBNO(mp, r.ir_startino);
|
|
|
for (chunkidx = 0;
|
|
|
chunkidx < XFS_INODES_PER_CHUNK;
|
|
@@ -399,6 +401,7 @@ xfs_bulkstat(
|
|
|
agbno, nbcluster,
|
|
|
&xfs_inode_buf_ops);
|
|
|
}
|
|
|
+ blk_finish_plug(&plug);
|
|
|
irbp->ir_startino = r.ir_startino;
|
|
|
irbp->ir_freecount = r.ir_freecount;
|
|
|
irbp->ir_free = r.ir_free;
|