aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/super.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-09-30 23:41:39 -0400
committerChristoph Hellwig <hch@lst.de>2010-09-30 23:41:39 -0400
commit40bf48afe92fcea61e7e164f0b2599fba8b88124 (patch)
tree233a48a5e2de1c469804f6745d8fd48e62c78abc /fs/hfsplus/super.c
parent6333816ade7e04a96ec0a34a8378c455e4f7c4dd (diff)
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index 3b55c050c742..3dc62aa58728 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)
321 321
322 sb->s_fs_info = sbi; 322 sb->s_fs_info = sbi;
323 INIT_HLIST_HEAD(&sbi->rsrc_inodes); 323 INIT_HLIST_HEAD(&sbi->rsrc_inodes);
324 mutex_init(&sbi->alloc_mutex);
324 hfsplus_fill_defaults(sbi); 325 hfsplus_fill_defaults(sbi);
325 if (!hfsplus_parse_options(data, sbi)) { 326 if (!hfsplus_parse_options(data, sbi)) {
326 printk(KERN_ERR "hfs: unable to parse mount options\n"); 327 printk(KERN_ERR "hfs: unable to parse mount options\n");