diff options
author | Christoph Hellwig <hch@lst.de> | 2010-09-30 23:41:39 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2010-09-30 23:41:39 -0400 |
commit | 40bf48afe92fcea61e7e164f0b2599fba8b88124 (patch) | |
tree | 233a48a5e2de1c469804f6745d8fd48e62c78abc /fs/hfsplus/hfsplus_fs.h | |
parent | 6333816ade7e04a96ec0a34a8378c455e4f7c4dd (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/hfsplus_fs.h')
-rw-r--r-- | fs/hfsplus/hfsplus_fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h index dc856be3c2b0..df0a6312f0f0 100644 --- a/fs/hfsplus/hfsplus_fs.h +++ b/fs/hfsplus/hfsplus_fs.h | |||
@@ -116,6 +116,9 @@ struct hfsplus_sb_info { | |||
116 | struct inode *hidden_dir; | 116 | struct inode *hidden_dir; |
117 | struct nls_table *nls; | 117 | struct nls_table *nls; |
118 | 118 | ||
119 | /* synchronize block allocations */ | ||
120 | struct mutex alloc_mutex; | ||
121 | |||
119 | /* Runtime variables */ | 122 | /* Runtime variables */ |
120 | u32 blockoffset; | 123 | u32 blockoffset; |
121 | u32 sect_count; | 124 | u32 sect_count; |