summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2014-09-09 11:57:29 +1000
committerDave Chinner <david@fromorbit.com>2014-09-09 11:57:29 +1000
commit970fd3f04d5949a4b5f6d0a5fea8e4b6797a5992 (patch)
treeb0b7669bc611d075e52b7ccbeced0181bd08e040 /fs/xfs/libxfs
parent59f9c004320704179913fa7c57645017ccf1b5c3 (diff)
downloadblackbird-op-linux-970fd3f04d5949a4b5f6d0a5fea8e4b6797a5992.tar.gz
blackbird-op-linux-970fd3f04d5949a4b5f6d0a5fea8e4b6797a5992.zip
xfs: deduplicate xlog_do_recovery_pass()
In xlog_do_recovery_pass(), there are 2 distinct cases: non-wrapped and wrapped log recovery. If we find a wrapped log, we recover around the end of the log, and then handle the rest of recovery exactly as in the non-wrapped case - using exactly the same (duplicated) code. Rather than having the same code in both cases, we can get the wrapped portion out of the way first if needed, and then recover the non-wrapped portion of the log. There should be no functional change here, just code reorganization & deduplication. The patch looks a bit bigger than it really is; the last hunk is whitespace changes (un-indenting). Tested with xfstests "check -g log" on a stock configuration. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud