aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-11-27 22:23:41 -0500
committerNiv Sardi <xaiki@sgi.com>2008-11-30 19:38:13 -0500
commitb48d8d64377f39913663a06f4757f3b8c6fc6d87 (patch)
treefc85231bfa3bd58a3f3aa4dbd564b590e3ac0a8a /fs/xfs
parent92bfc6e7c4eabbbd15e7d6d49123b296d05dcfd1 (diff)
[XFS] kill the XFS_IMAP_BULKSTAT flag
Just pass down the XFS_IGET_* flags all the way down to xfs_imap instead of translating them mid-way. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_ialloc.c2
-rw-r--r--fs/xfs/xfs_iget.c3
-rw-r--r--fs/xfs/xfs_inode.c4
-rw-r--r--fs/xfs/xfs_inode.h5
-rw-r--r--fs/xfs/xfs_itable.c2
5 files changed, 5 insertions, 11 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index 4f4557262d9f..e6ebbaeb4dc6 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -1228,7 +1228,7 @@ xfs_imap(
1228 ino != XFS_AGINO_TO_INO(mp, agno, agino)) { 1228 ino != XFS_AGINO_TO_INO(mp, agno, agino)) {
1229#ifdef DEBUG 1229#ifdef DEBUG
1230 /* no diagnostics for bulkstat, ino comes from userspace */ 1230 /* no diagnostics for bulkstat, ino comes from userspace */
1231 if (flags & XFS_IMAP_BULKSTAT) 1231 if (flags & XFS_IGET_BULKSTAT)
1232 return XFS_ERROR(EINVAL); 1232 return XFS_ERROR(EINVAL);
1233 if (agno >= mp->m_sb.sb_agcount) { 1233 if (agno >= mp->m_sb.sb_agcount) {
1234 xfs_fs_cmn_err(CE_ALERT, mp, 1234 xfs_fs_cmn_err(CE_ALERT, mp,
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c
index bf4dc5eb4cfc..d60522a73a17 100644
--- a/fs/xfs/xfs_iget.c
+++ b/fs/xfs/xfs_iget.c
@@ -159,8 +159,7 @@ xfs_iget_cache_miss(
159 * Read the disk inode attributes into a new inode structure and get 159 * Read the disk inode attributes into a new inode structure and get
160 * a new vnode for it. This should also initialize i_ino and i_mount. 160 * a new vnode for it. This should also initialize i_ino and i_mount.
161 */ 161 */
162 error = xfs_iread(mp, tp, ino, &ip, bno, 162 error = xfs_iread(mp, tp, ino, &ip, bno, flags);
163 (flags & XFS_IGET_BULKSTAT) ? XFS_IMAP_BULKSTAT : 0);
164 if (error) 163 if (error)
165 return error; 164 return error;
166 165
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 72dc7a87a14b..4290760473ff 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -136,7 +136,7 @@ xfs_imap_to_bp(
136 struct xfs_imap *imap, 136 struct xfs_imap *imap,
137 xfs_buf_t **bpp, 137 xfs_buf_t **bpp,
138 uint buf_flags, 138 uint buf_flags,
139 uint imap_flags) 139 uint iget_flags)
140{ 140{
141 int error; 141 int error;
142 int i; 142 int i;
@@ -178,7 +178,7 @@ xfs_imap_to_bp(
178 if (unlikely(XFS_TEST_ERROR(!di_ok, mp, 178 if (unlikely(XFS_TEST_ERROR(!di_ok, mp,
179 XFS_ERRTAG_ITOBP_INOTOBP, 179 XFS_ERRTAG_ITOBP_INOTOBP,
180 XFS_RANDOM_ITOBP_INOTOBP))) { 180 XFS_RANDOM_ITOBP_INOTOBP))) {
181 if (imap_flags & XFS_IMAP_BULKSTAT) { 181 if (iget_flags & XFS_IGET_BULKSTAT) {
182 xfs_trans_brelse(tp, bp); 182 xfs_trans_brelse(tp, bp);
183 return XFS_ERROR(EINVAL); 183 return XFS_ERROR(EINVAL);
184 } 184 }
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index d5c3aa1b18ef..49e609c39d7e 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -167,11 +167,6 @@ typedef struct xfs_icdinode {
167#define XFS_IFEXTIREC 0x08 /* Indirection array of extent blocks */ 167#define XFS_IFEXTIREC 0x08 /* Indirection array of extent blocks */
168 168
169/* 169/*
170 * Flags for xfs_inotobp and xfs_imap().
171 */
172#define XFS_IMAP_BULKSTAT 0x1
173
174/*
175 * Fork handling. 170 * Fork handling.
176 */ 171 */
177 172
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index 4315ce642b4e..d4c0de860124 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -595,7 +595,7 @@ xfs_bulkstat(
595 595
596 error = xfs_inotobp(mp, NULL, ino, &dip, 596 error = xfs_inotobp(mp, NULL, ino, &dip,
597 &bp, &offset, 597 &bp, &offset,
598 XFS_IMAP_BULKSTAT); 598 XFS_IGET_BULKSTAT);
599 599
600 if (!error) 600 if (!error)
601 clustidx = offset / mp->m_sb.sb_inodesize; 601 clustidx = offset / mp->m_sb.sb_inodesize;