Rounding up a value can be soooo hard...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10361 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1843,7 +1843,7 @@ Inode::NeedsTrimming()
|
||||
if (IsIndex())
|
||||
return false;
|
||||
|
||||
off_t roundedSize = (Size() + fVolume->BlockSize() - 1) >> fVolume->BlockShift();
|
||||
off_t roundedSize = (Size() + fVolume->BlockSize() - 1) & ~(fVolume->BlockSize() - 1);
|
||||
|
||||
return Node().data.MaxDirectRange() > roundedSize
|
||||
|| Node().data.MaxIndirectRange() > roundedSize
|
||||
|
||||
Reference in New Issue
Block a user