diff options
author | David Chinner <dgc@sgi.com> | 2008-04-09 22:24:10 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-17 22:01:39 -0400 |
commit | 64bfe1bfae833e89ed77f72c61ded19f4b1976f8 (patch) | |
tree | 7560fc6e97a493a2b9066a23a69cf44ac2df81ce /fs/xfs/xfs_log_recover.c | |
parent | 7b07339048f7b020575706b492c004b5664b67ab (diff) |
[XFS] Catch errors from xfs_imap().
Catch errors from xfs_imap() in log recovery when we might be trying to
map an invalid inode number due to a corrupted log.
SGI-PV: 980084
SGI-Modid: xfs-linux-melb:xfs-kern:30829a
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 1f83298f90aa..a8039431b86f 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -2282,7 +2282,9 @@ xlog_recover_do_inode_trans( | |||
2282 | * invalidate the buffer when we write it out below. | 2282 | * invalidate the buffer when we write it out below. |
2283 | */ | 2283 | */ |
2284 | imap.im_blkno = 0; | 2284 | imap.im_blkno = 0; |
2285 | xfs_imap(log->l_mp, NULL, ino, &imap, 0); | 2285 | error = xfs_imap(log->l_mp, NULL, ino, &imap, 0); |
2286 | if (error) | ||
2287 | goto error; | ||
2286 | } | 2288 | } |
2287 | 2289 | ||
2288 | /* | 2290 | /* |