]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: collapse 2 cases in process_sf_dir2
authorEric Sandeen <sandeen@redhat.com>
Mon, 6 Apr 2015 23:20:07 +0000 (09:20 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 6 Apr 2015 23:20:07 +0000 (09:20 +1000)
commit1c934a2590c587707209583d962957bc8645afcb
treecd9ea36c3fa94a61a27472f850bbc34c74340773
parent1633febd85a77a88512f216da5d804f24cd64d86
xfs_repair: collapse 2 cases in process_sf_dir2

process_sf_dir2() has 2 cases for a bad namelen: on-disk namelen
is 0, or on-disk namelen extends beyond the directory i_size.

After the prior 2 patches, the code for each case is now essentially
the same, so collapse the two cases.

Note, this does slightly change some of the error messages.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/dir2.c