diff options
Diffstat (limited to 'fs/xfs/xfs_dir2_leaf.c')
-rw-r--r-- | fs/xfs/xfs_dir2_leaf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c index 2ebbed4f1b0d..f110242d6dfc 100644 --- a/fs/xfs/xfs_dir2_leaf.c +++ b/fs/xfs/xfs_dir2_leaf.c | |||
@@ -1299,12 +1299,13 @@ xfs_dir2_leaf_lookup( | |||
1299 | ((char *)dbp->data + | 1299 | ((char *)dbp->data + |
1300 | xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address))); | 1300 | xfs_dir2_dataptr_to_off(dp->i_mount, be32_to_cpu(lep->address))); |
1301 | /* | 1301 | /* |
1302 | * Return the found inode number. | 1302 | * Return the found inode number & CI name if appropriate |
1303 | */ | 1303 | */ |
1304 | args->inumber = be64_to_cpu(dep->inumber); | 1304 | args->inumber = be64_to_cpu(dep->inumber); |
1305 | error = xfs_dir_cilookup_result(args, dep->name, dep->namelen); | ||
1305 | xfs_da_brelse(tp, dbp); | 1306 | xfs_da_brelse(tp, dbp); |
1306 | xfs_da_brelse(tp, lbp); | 1307 | xfs_da_brelse(tp, lbp); |
1307 | return XFS_ERROR(EEXIST); | 1308 | return XFS_ERROR(error); |
1308 | } | 1309 | } |
1309 | 1310 | ||
1310 | /* | 1311 | /* |