jbd2: eliminate duplicated code in revocation table init/destroy functions
authorDuane Griffin <duaneg@dghda.com>
Thu, 17 Apr 2008 14:38:59 +0000 (10:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Apr 2008 14:38:59 +0000 (10:38 -0400)
commit83c49523c91fff10493f5b3c102063b02ab76907
tree8223a729c10feef5387f18b10942542afc7861ba
parent9fa27c85de57d38ca698f4e34fdd1ab06b6c8e49
jbd2: 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>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/revoke.c