diff options
Diffstat (limited to 'fs/udf/truncate.c')
-rw-r--r-- | fs/udf/truncate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/udf/truncate.c b/fs/udf/truncate.c index 676f8b3e6..1bf6e4cee 100644 --- a/fs/udf/truncate.c +++ b/fs/udf/truncate.c @@ -38,8 +38,7 @@ static void extent_trunc(struct inode * inode, lb_addr bloc, int *extoffset, lb_addr neloc = { 0, 0 }; int nelen = 0; int blocks = inode->i_sb->s_blocksize / 512; - int last_block = (elen + inode->i_sb->s_blocksize - 1) / inode->i_sb->s_blocksize; - + int last_block = (elen + inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits; if (offset) { |