jbd: eliminate duplicated code in revocation table init/destroy functions
authorDuane Griffin <duaneg@dghda.com>
Fri, 25 Jul 2008 08:46:20 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:32 +0000 (10:53 -0700)
commitf4d79ca2fa211cffc07306eeed7013448e77d7ec
treedee0ba9ed8102f5d0bcadc1e93ca7affe2414e8f
parent3850f7a521dc17659ef6758a219f083418788490
jbd: eliminate duplicated code in revocation table init/destroy functions

The revocation table initialisation/destruction code is repeated for each
of the two revocation tables stored in the journal.  Refactoring the
duplicated code into functions is tidier, simplifies the logic in
initialisation in particular, and slightly reduces the code size.

There should not be any functional change.

Signed-off-by: Duane Griffin <duaneg@dghda.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/jbd/revoke.c