cleanup sync_supers
authorChristoph Hellwig <hch@lst.de>
Tue, 5 May 2009 14:08:56 +0000 (16:08 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:06 +0000 (21:36 -0400)
commite5004753388dcf5e1b8a52ac0ab807d232340fbb
tree4a74a93f1468acb111ba9a3e9ed4a55f338f51fe
parentf3da392e9ff14b9f388e74319e6d195848991c07
cleanup sync_supers

Merge the write_super helper into sync_super and move the check for
->write_super earlier so that we can avoid grabbing a reference to
a superblock that doesn't have it.

While we're at it also add a little comment documenting sync_supers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/super.c