aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r--fs/xfs/xfs_itable.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index c59450e1be40..94068d014f27 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -272,7 +272,7 @@ xfs_bulkstat(
272 size_t statstruct_size, /* sizeof struct filling */ 272 size_t statstruct_size, /* sizeof struct filling */
273 char __user *ubuffer, /* buffer with inode stats */ 273 char __user *ubuffer, /* buffer with inode stats */
274 int flags, /* defined in xfs_itable.h */ 274 int flags, /* defined in xfs_itable.h */
275 int *done) /* 1 if there're more stats to get */ 275 int *done) /* 1 if there are more stats to get */
276{ 276{
277 xfs_agblock_t agbno=0;/* allocation group block number */ 277 xfs_agblock_t agbno=0;/* allocation group block number */
278 xfs_buf_t *agbp; /* agi header buffer */ 278 xfs_buf_t *agbp; /* agi header buffer */
@@ -562,7 +562,8 @@ xfs_bulkstat(
562 if (bp) 562 if (bp)
563 xfs_buf_relse(bp); 563 xfs_buf_relse(bp);
564 error = xfs_itobp(mp, NULL, ip, 564 error = xfs_itobp(mp, NULL, ip,
565 &dip, &bp, bno); 565 &dip, &bp, bno,
566 XFS_IMAP_BULKSTAT);
566 if (!error) 567 if (!error)
567 clustidx = ip->i_boffset / mp->m_sb.sb_inodesize; 568 clustidx = ip->i_boffset / mp->m_sb.sb_inodesize;
568 kmem_zone_free(xfs_inode_zone, ip); 569 kmem_zone_free(xfs_inode_zone, ip);
@@ -570,6 +571,8 @@ xfs_bulkstat(
570 mp, XFS_ERRTAG_BULKSTAT_READ_CHUNK, 571 mp, XFS_ERRTAG_BULKSTAT_READ_CHUNK,
571 XFS_RANDOM_BULKSTAT_READ_CHUNK)) { 572 XFS_RANDOM_BULKSTAT_READ_CHUNK)) {
572 bp = NULL; 573 bp = NULL;
574 ubleft = 0;
575 rval = error;
573 break; 576 break;
574 } 577 }
575 } 578 }
@@ -673,7 +676,7 @@ xfs_bulkstat_single(
673 xfs_mount_t *mp, /* mount point for filesystem */ 676 xfs_mount_t *mp, /* mount point for filesystem */
674 xfs_ino_t *lastinop, /* inode to return */ 677 xfs_ino_t *lastinop, /* inode to return */
675 char __user *buffer, /* buffer with inode stats */ 678 char __user *buffer, /* buffer with inode stats */
676 int *done) /* 1 if there're more stats to get */ 679 int *done) /* 1 if there are more stats to get */
677{ 680{
678 int count; /* count value for bulkstat call */ 681 int count; /* count value for bulkstat call */
679 int error; /* return value */ 682 int error; /* return value */