diff options
author | Vyacheslav Dubeyko <slava@dubeyko.com> | 2012-07-30 17:42:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:19 -0400 |
commit | f5974c8f8cf431baf44e7127b669e3b1960f184f (patch) | |
tree | 93df5ca85bdb49be8dd6d2ce46e10fb1d6cc9411 /fs/nilfs2/alloc.h | |
parent | 8c74ac0557b4cabc9017c2740c5f62b330192416 (diff) |
nilfs2: add omitted comments for different structures in driver implementation
Add omitted comments for different structures in driver implementation.
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/alloc.h')
-rw-r--r-- | fs/nilfs2/alloc.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fs/nilfs2/alloc.h b/fs/nilfs2/alloc.h index f5fde36b9e28..fb7238100548 100644 --- a/fs/nilfs2/alloc.h +++ b/fs/nilfs2/alloc.h | |||
@@ -76,15 +76,23 @@ int nilfs_palloc_freev(struct inode *, __u64 *, size_t); | |||
76 | #define nilfs_clear_bit_atomic ext2_clear_bit_atomic | 76 | #define nilfs_clear_bit_atomic ext2_clear_bit_atomic |
77 | #define nilfs_find_next_zero_bit find_next_zero_bit_le | 77 | #define nilfs_find_next_zero_bit find_next_zero_bit_le |
78 | 78 | ||
79 | /* | 79 | /** |
80 | * persistent object allocator cache | 80 | * struct nilfs_bh_assoc - block offset and buffer head association |
81 | * @blkoff: block offset | ||
82 | * @bh: buffer head | ||
81 | */ | 83 | */ |
82 | |||
83 | struct nilfs_bh_assoc { | 84 | struct nilfs_bh_assoc { |
84 | unsigned long blkoff; | 85 | unsigned long blkoff; |
85 | struct buffer_head *bh; | 86 | struct buffer_head *bh; |
86 | }; | 87 | }; |
87 | 88 | ||
89 | /** | ||
90 | * struct nilfs_palloc_cache - persistent object allocator cache | ||
91 | * @lock: cache protecting lock | ||
92 | * @prev_desc: blockgroup descriptors cache | ||
93 | * @prev_bitmap: blockgroup bitmap cache | ||
94 | * @prev_entry: translation entries cache | ||
95 | */ | ||
88 | struct nilfs_palloc_cache { | 96 | struct nilfs_palloc_cache { |
89 | spinlock_t lock; | 97 | spinlock_t lock; |
90 | struct nilfs_bh_assoc prev_desc; | 98 | struct nilfs_bh_assoc prev_desc; |