Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229149
b: refs/heads/master
c: d1668fe
h: refs/heads/master
i:
  229147: cabdb11
v: v3
  • Loading branch information
Jan Kara committed Jan 6, 2011
1 parent 00b0d84 commit 7672c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7abc2e45e48ca04206949682402d5d55bc64a16b
refs/heads/master: d1668fe390c1e84580575965684a8fa7e4626dee
11 changes: 2 additions & 9 deletions trunk/fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2207,8 +2207,6 @@ static unsigned int udf_count_free_bitmap(struct super_block *sb,
uint16_t ident;
struct spaceBitmapDesc *bm;

lock_kernel();

loc.logicalBlockNum = bitmap->s_extPosition;
loc.partitionReferenceNum = UDF_SB(sb)->s_partition;
bh = udf_read_ptagged(sb, &loc, 0, &ident);
Expand Down Expand Up @@ -2245,10 +2243,7 @@ static unsigned int udf_count_free_bitmap(struct super_block *sb,
}
}
brelse(bh);

out:
unlock_kernel();

return accum;
}

Expand All @@ -2261,8 +2256,7 @@ static unsigned int udf_count_free_table(struct super_block *sb,
int8_t etype;
struct extent_position epos;

lock_kernel();

mutex_lock(&UDF_SB(sb)->s_alloc_mutex);
epos.block = UDF_I(table)->i_location;
epos.offset = sizeof(struct unallocSpaceEntry);
epos.bh = NULL;
Expand All @@ -2271,8 +2265,7 @@ static unsigned int udf_count_free_table(struct super_block *sb,
accum += (elen >> table->i_sb->s_blocksize_bits);

brelse(epos.bh);

unlock_kernel();
mutex_unlock(&UDF_SB(sb)->s_alloc_mutex);

return accum;
}
Expand Down

0 comments on commit 7672c98

Please sign in to comment.