jbd: tidy up revoke cache initialisation and destruction
authorDuane Griffin <duaneg@dghda.com>
Fri, 25 Jul 2008 08:46:21 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:32 +0000 (10:53 -0700)
commit1984bb763c2e50d0ebfb0cf56d1b319bd7afe63a
treedde3d0c06ee054d2d4439e6ac16da831f83a72a7
parentf4d79ca2fa211cffc07306eeed7013448e77d7ec
jbd: tidy up revoke cache initialisation and destruction

Make revocation cache destruction safe to call if initialisation fails
partially or entirely.  This allows it to be used to cleanup in the case
of initialisation failure, simplifying that code slightly.

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