logfs: initialize superblock entries earlier
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 3 May 2011 23:10:25 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 3 May 2011 23:10:25 +0000 (16:10 -0700)
commitcce2c56e7666199916525907dc817209dd58287c
tree555a0ae78da2148b37c585cd4477047376b0bde9
parent609cfda586c7fe3e5d1a02c51edb587506294167
logfs: initialize superblock entries earlier

In particular, s_freeing_list needs to be initialized early, since it is
used on some of the error paths when mounts fail.  The mapping inode,
for example, would be initialized and then free'd on an error path
before s_freeing_list was initialized, but the inode drop operation
needs the s_freeing_list to be set up.

Normally you'd never see this, because not only is logfs fairly rare,
but a successful mount will never have any issues.

Reported-by: werner <w.landgraf@ru.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/logfs/super.c