summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ialloc.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-06-09 17:12:28 +1000
committerNathan Scott <nathans@sgi.com>2006-06-09 17:12:28 +1000
commit4d1a2ed3d8d6e306d20f5d99a5ae12ac4c8b787b (patch)
treea6d6def1330a320787dcf688a7e02d537d9b5b7b /fs/xfs/xfs_ialloc.c
parenta916e2bd15b7572d9e791ae2a9333f74175470cd (diff)
downloadlinux-4d1a2ed3d8d6e306d20f5d99a5ae12ac4c8b787b.tar.gz
linux-4d1a2ed3d8d6e306d20f5d99a5ae12ac4c8b787b.tar.bz2
linux-4d1a2ed3d8d6e306d20f5d99a5ae12ac4c8b787b.zip
[XFS] Fix up debug code so that bulkstat wont generate thousands of
fsstress warnings. SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:26111a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_ialloc.c')
-rw-r--r--fs/xfs/xfs_ialloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index deddbd03c166..7e5ccfec92be 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -1174,6 +1174,9 @@ xfs_dilocate(
if (agno >= mp->m_sb.sb_agcount || agbno >= mp->m_sb.sb_agblocks ||
ino != XFS_AGINO_TO_INO(mp, agno, agino)) {
#ifdef DEBUG
+ /* no diagnostics for bulkstat, ino comes from userspace */
+ if (flags & XFS_IMAP_BULKSTAT)
+ return XFS_ERROR(EINVAL);
if (agno >= mp->m_sb.sb_agcount) {
xfs_fs_cmn_err(CE_ALERT, mp,
"xfs_dilocate: agno (%d) >= "