summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2014-09-29 04:52:44 +0400
committerDave Chinner <david@fromorbit.com>2014-09-29 04:52:44 +0400
commitbd438f825f7badafe56d117ed906488c8541f95f (patch)
treefb0b4a989c2b63ff796a15a975cd413c2da61aa1 /fs/xfs/libxfs
parent2f43bbd96e43d0b85803f5092be94bbb92d8eac9 (diff)
parentb972d0797180d8414351d9dc8ff65071c692d058 (diff)
downloadlinux-bd438f825f7badafe56d117ed906488c8541f95f.tar.xz
Merge branch 'xfs-sparse-fixes' into for-next
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c
index d213a2eae95e..23dcb72fc5e6 100644
--- a/fs/xfs/libxfs/xfs_ialloc.c
+++ b/fs/xfs/libxfs/xfs_ialloc.c
@@ -1076,8 +1076,8 @@ xfs_dialloc_ag_finobt_newino(
int i;
if (agi->agi_newino != cpu_to_be32(NULLAGINO)) {
- error = xfs_inobt_lookup(cur, agi->agi_newino, XFS_LOOKUP_EQ,
- &i);
+ error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino),
+ XFS_LOOKUP_EQ, &i);
if (error)
return error;
if (i == 1) {
@@ -1085,7 +1085,6 @@ xfs_dialloc_ag_finobt_newino(
if (error)
return error;
XFS_WANT_CORRUPTED_RETURN(i == 1);
-
return 0;
}
}