hfsplus: use alloc_mutex in hfsplus_sync_fs
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Oct 2010 03:41:50 +0000 (05:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Oct 2010 03:41:50 +0000 (05:41 +0200)
commita9fdbf8c6070d49c482e209df7ee93d9ec41ea27
treed8e2547819bc1e75f3ac29804e6c5b8b23f65c75
parent40bf48afe92fcea61e7e164f0b2599fba8b88124
hfsplus: use alloc_mutex in hfsplus_sync_fs

Use alloc_mutex to protect hfsplus_sync_fs against itself and concurrent
allocations, which allows to get rid of lock_super in hfsplus.

Note that most fields in the superblock still aren't protected against
concurrent allocations, that will follow later.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/super.c