patch-2.3.25 linux/fs/udf/balloc.c
Next file: linux/fs/udf/dir.c
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sat Oct 30 09:42:30 1999
- Orig file:
v2.3.24/linux/fs/udf/balloc.c
- Orig date:
Tue Sep 7 12:14:07 1999
diff -u --recursive --new-file v2.3.24/linux/fs/udf/balloc.c linux/fs/udf/balloc.c
@@ -402,7 +402,7 @@
got_block:
newblock = bit + (block_group << (sb->s_blocksize_bits + 3)) -
- (group_start << 3);
+ (sizeof(struct SpaceBitmapDesc) << 3);
tmp = udf_get_pblock(sb, newblock, partition, 0);
if (!udf_clear_bit(bit, bh->b_data))
@@ -412,16 +412,6 @@
}
mark_buffer_dirty(bh, 1);
- if (!(bh = getblk(sb->s_dev, tmp, sb->s_blocksize)))
- {
- udf_debug("cannot get block %d\n", tmp);
- unlock_super(sb);
- return 0;
- }
- memset(bh->b_data, 0, sb->s_blocksize);
- mark_buffer_uptodate(bh, 1);
- mark_buffer_dirty(bh, 1);
- udf_release_data(bh);
if (UDF_SB_LVIDBH(sb))
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)