diff options
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 4e69f3cbc5f1..7868f7e7c455 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -1352,21 +1352,21 @@ int ocfs2_validate_inode_block(struct super_block *sb, | |||
1352 | rc = -EINVAL; | 1352 | rc = -EINVAL; |
1353 | 1353 | ||
1354 | if (!OCFS2_IS_VALID_DINODE(di)) { | 1354 | if (!OCFS2_IS_VALID_DINODE(di)) { |
1355 | ocfs2_error(sb, "Invalid dinode #%llu: signature = %.*s\n", | 1355 | rc = ocfs2_error(sb, "Invalid dinode #%llu: signature = %.*s\n", |
1356 | (unsigned long long)bh->b_blocknr, 7, | 1356 | (unsigned long long)bh->b_blocknr, 7, |
1357 | di->i_signature); | 1357 | di->i_signature); |
1358 | goto bail; | 1358 | goto bail; |
1359 | } | 1359 | } |
1360 | 1360 | ||
1361 | if (le64_to_cpu(di->i_blkno) != bh->b_blocknr) { | 1361 | if (le64_to_cpu(di->i_blkno) != bh->b_blocknr) { |
1362 | ocfs2_error(sb, "Invalid dinode #%llu: i_blkno is %llu\n", | 1362 | rc = ocfs2_error(sb, "Invalid dinode #%llu: i_blkno is %llu\n", |
1363 | (unsigned long long)bh->b_blocknr, | 1363 | (unsigned long long)bh->b_blocknr, |
1364 | (unsigned long long)le64_to_cpu(di->i_blkno)); | 1364 | (unsigned long long)le64_to_cpu(di->i_blkno)); |
1365 | goto bail; | 1365 | goto bail; |
1366 | } | 1366 | } |
1367 | 1367 | ||
1368 | if (!(di->i_flags & cpu_to_le32(OCFS2_VALID_FL))) { | 1368 | if (!(di->i_flags & cpu_to_le32(OCFS2_VALID_FL))) { |
1369 | ocfs2_error(sb, | 1369 | rc = ocfs2_error(sb, |
1370 | "Invalid dinode #%llu: OCFS2_VALID_FL not set\n", | 1370 | "Invalid dinode #%llu: OCFS2_VALID_FL not set\n", |
1371 | (unsigned long long)bh->b_blocknr); | 1371 | (unsigned long long)bh->b_blocknr); |
1372 | goto bail; | 1372 | goto bail; |
@@ -1374,7 +1374,7 @@ int ocfs2_validate_inode_block(struct super_block *sb, | |||
1374 | 1374 | ||
1375 | if (le32_to_cpu(di->i_fs_generation) != | 1375 | if (le32_to_cpu(di->i_fs_generation) != |
1376 | OCFS2_SB(sb)->fs_generation) { | 1376 | OCFS2_SB(sb)->fs_generation) { |
1377 | ocfs2_error(sb, | 1377 | rc = ocfs2_error(sb, |
1378 | "Invalid dinode #%llu: fs_generation is %u\n", | 1378 | "Invalid dinode #%llu: fs_generation is %u\n", |
1379 | (unsigned long long)bh->b_blocknr, | 1379 | (unsigned long long)bh->b_blocknr, |
1380 | le32_to_cpu(di->i_fs_generation)); | 1380 | le32_to_cpu(di->i_fs_generation)); |