diff options
author | Christoph Hellwig <hch@lst.de> | 2010-10-01 05:41:39 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2010-10-01 05:41:39 +0200 |
commit | 40bf48afe92fcea61e7e164f0b2599fba8b88124 (patch) | |
tree | 233a48a5e2de1c469804f6745d8fd48e62c78abc /fs/hfsplus/super.c | |
parent | 6333816ade7e04a96ec0a34a8378c455e4f7c4dd (diff) | |
download | op-kernel-dev-40bf48afe92fcea61e7e164f0b2599fba8b88124.zip op-kernel-dev-40bf48afe92fcea61e7e164f0b2599fba8b88124.tar.gz |
hfsplus: introduce alloc_mutex
Use a new per-sb alloc_mutex instead of abusing i_mutex of the alloc_file
to protect block allocations. This gets rid of lockdep nesting warnings
and prepares for extending the scope of alloc_mutex.
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
Diffstat (limited to 'fs/hfsplus/super.c')
-rw-r--r-- | fs/hfsplus/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 3b55c05..3dc62aa 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -321,6 +321,7 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent) sb->s_fs_info = sbi; INIT_HLIST_HEAD(&sbi->rsrc_inodes); + mutex_init(&sbi->alloc_mutex); hfsplus_fill_defaults(sbi); if (!hfsplus_parse_options(data, sbi)) { printk(KERN_ERR "hfs: unable to parse mount options\n"); |