diff options
author | Christoph Hellwig <hch@lst.de> | 2010-10-01 03:41:39 (GMT) |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2010-10-01 03:41:39 (GMT) |
commit | 40bf48afe92fcea61e7e164f0b2599fba8b88124 (patch) | |
tree | 233a48a5e2de1c469804f6745d8fd48e62c78abc /fs/hfsplus/hfsplus_fs.h | |
parent | 6333816ade7e04a96ec0a34a8378c455e4f7c4dd (diff) | |
download | linux-40bf48afe92fcea61e7e164f0b2599fba8b88124.tar.xz |
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 dc856be..df0a631 100644 --- a/fs/hfsplus/hfsplus_fs.h +++ b/fs/hfsplus/hfsplus_fs.h @@ -116,6 +116,9 @@ struct hfsplus_sb_info { struct inode *hidden_dir; struct nls_table *nls; + /* synchronize block allocations */ + struct mutex alloc_mutex; + /* Runtime variables */ u32 blockoffset; u32 sect_count; |