patch-2.3.26 linux/fs/udf/truncate.c
Next file: linux/include/asm-alpha/shmparam.h
Previous file: linux/fs/udf/super.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sat Nov 6 09:51:19 1999
- Orig file:
v2.3.25/linux/fs/udf/truncate.c
- Orig date:
Tue Sep 7 12:14:07 1999
diff -u --recursive --new-file v2.3.25/linux/fs/udf/truncate.c linux/fs/udf/truncate.c
@@ -64,7 +64,7 @@
lb_addr bloc, eloc, neloc = { 0, 0 };
Uint32 extoffset, elen, offset, nelen = 0, lelen = 0, lenalloc;
int etype;
- int first_block = (inode->i_size + inode->i_sb->s_blocksize - 1) / inode->i_sb->s_blocksize;
+ int first_block = (inode->i_size + inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits;
struct buffer_head *bh = NULL;
int adsize;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)