aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2013-07-12 06:34:42 -0400
committerThomas Gleixner <tglx@linutronix.de>2013-07-12 06:34:42 -0400
commitf2006e27396f55276f24434f56e208d86e7f9908 (patch)
tree71896db916d33888b4286f80117d3cac0da40e6d /fs/xfs/xfs_itable.c
parente399eb56a6110e13f97e644658648602e2b08de7 (diff)
parent9903883f1dd6e86f286b7bfa6e4b423f98c1cd9e (diff)
Merge branch 'linus' into timers/urgent
Get upstream changes so we can apply fixes against them Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r--fs/xfs/xfs_itable.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index 2ea7d402188d..bc92c5306a17 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -43,7 +43,7 @@ xfs_internal_inum(
43{ 43{
44 return (ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino || 44 return (ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino ||
45 (xfs_sb_version_hasquota(&mp->m_sb) && 45 (xfs_sb_version_hasquota(&mp->m_sb) &&
46 (ino == mp->m_sb.sb_uquotino || ino == mp->m_sb.sb_gquotino))); 46 xfs_is_quota_inode(&mp->m_sb, ino)));
47} 47}
48 48
49/* 49/*
@@ -383,11 +383,13 @@ xfs_bulkstat(
383 * Also start read-ahead now for this chunk. 383 * Also start read-ahead now for this chunk.
384 */ 384 */
385 if (r.ir_freecount < XFS_INODES_PER_CHUNK) { 385 if (r.ir_freecount < XFS_INODES_PER_CHUNK) {
386 struct blk_plug plug;
386 /* 387 /*
387 * Loop over all clusters in the next chunk. 388 * Loop over all clusters in the next chunk.
388 * Do a readahead if there are any allocated 389 * Do a readahead if there are any allocated
389 * inodes in that cluster. 390 * inodes in that cluster.
390 */ 391 */
392 blk_start_plug(&plug);
391 agbno = XFS_AGINO_TO_AGBNO(mp, r.ir_startino); 393 agbno = XFS_AGINO_TO_AGBNO(mp, r.ir_startino);
392 for (chunkidx = 0; 394 for (chunkidx = 0;
393 chunkidx < XFS_INODES_PER_CHUNK; 395 chunkidx < XFS_INODES_PER_CHUNK;
@@ -399,6 +401,7 @@ xfs_bulkstat(
399 agbno, nbcluster, 401 agbno, nbcluster,
400 &xfs_inode_buf_ops); 402 &xfs_inode_buf_ops);
401 } 403 }
404 blk_finish_plug(&plug);
402 irbp->ir_startino = r.ir_startino; 405 irbp->ir_startino = r.ir_startino;
403 irbp->ir_freecount = r.ir_freecount; 406 irbp->ir_freecount = r.ir_freecount;
404 irbp->ir_free = r.ir_free; 407 irbp->ir_free = r.ir_free;