aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-11-27 22:23:40 -0500
committerNiv Sardi <xaiki@sgi.com>2008-11-30 19:37:58 -0500
commita1941895034cda2bffa23ba845607c82138ccf52 (patch)
tree604c916884caa4ae2d97e6e47ac0d304cd70d1b4 /fs/xfs/xfs_inode.c
parent76d8b277f7b715f78ee3cb09ee112563639693a5 (diff)
[XFS] remove dead code for old inode item recovery
We have removed the support for old-style inode items a while ago and xlog_recover_do_inode_trans is now only called for XFS_LI_INODE items. That means we can remove the call to xfs_imap there and with it the XFS_IMAP_LOOKUP that is set by all other callers. We can also mark xfs_imap static now. (First sent on October 21st) 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/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 1d5c28b144ae..663ff9e517fd 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -237,7 +237,7 @@ xfs_inotobp(
237 int error; 237 int error;
238 238
239 imap.im_blkno = 0; 239 imap.im_blkno = 0;
240 error = xfs_imap(mp, tp, ino, &imap, imap_flags | XFS_IMAP_LOOKUP); 240 error = xfs_imap(mp, tp, ino, &imap, imap_flags);
241 if (error) 241 if (error)
242 return error; 242 return error;
243 243
@@ -868,8 +868,7 @@ xfs_iread(
868 * Get pointers to the on-disk inode and the buffer containing it. 868 * Get pointers to the on-disk inode and the buffer containing it.
869 */ 869 */
870 imap.im_blkno = bno; 870 imap.im_blkno = bno;
871 error = xfs_imap(mp, tp, ip->i_ino, &imap, 871 error = xfs_imap(mp, tp, ip->i_ino, &imap, imap_flags);
872 XFS_IMAP_LOOKUP | imap_flags);
873 if (error) 872 if (error)
874 goto out_destroy_inode; 873 goto out_destroy_inode;
875 874