aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2008-11-22 15:04:59 -0500
committerTheodore Ts'o <tytso@mit.edu>2008-11-22 15:04:59 -0500
commit3a06d778dfeda7eaeeb79bfa49cf97f2aae132b4 (patch)
tree08c813063950404356c9c64678eed72f21f217b9 /fs/ext4/mballoc.c
parent1a0d3786dd57dbd74f340322054c3d618b999dcf (diff)
ext4: sparse fixes
* Change EXT4_HAS_*_FEATURE to return a boolean * Add a function prototype for ext4_fiemap() in ext4.h * Make ext4_ext_fiemap_cb() and ext4_xattr_fiemap() be static functions * Add lock annotations to mb_free_blocks() Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 1d78435ce388..edf9730ba72e 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -1056,6 +1056,8 @@ static void mb_set_bits(spinlock_t *lock, void *bm, int cur, int len)
1056 1056
1057static void mb_free_blocks(struct inode *inode, struct ext4_buddy *e4b, 1057static void mb_free_blocks(struct inode *inode, struct ext4_buddy *e4b,
1058 int first, int count) 1058 int first, int count)
1059__releases(bitlock)
1060__acquires(bitlock)
1059{ 1061{
1060 int block = 0; 1062 int block = 0;
1061 int max = 0; 1063 int max = 0;
@@ -2244,7 +2246,7 @@ ext4_mb_store_history(struct ext4_allocation_context *ac)
2244 2246
2245 2247
2246/* Create and initialize ext4_group_info data for the given group. */ 2248/* Create and initialize ext4_group_info data for the given group. */
2247int ext4_mb_add_groupinfo(struct super_block *sb, ext4_group_t group, 2249static int ext4_mb_add_groupinfo(struct super_block *sb, ext4_group_t group,
2248 struct ext4_group_desc *desc) 2250 struct ext4_group_desc *desc)
2249{ 2251{
2250 int i, len; 2252 int i, len;