mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Btrfs: remove ASSERT in btrfs_truncate_inode_items
After 76b42abbf7 ("Btrfs: fix data loss after truncate when using the
no-holes feature"),
For either NO_HOLES or inline extents, we've set last_size to newsize to
avoid data loss after remount or inode got evicted and read again, thus,
we don't need this check anymore.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1450612797
commit
f95fda8751
1 changed files with 0 additions and 7 deletions
|
|
@ -4603,13 +4603,6 @@ error:
|
|||
|
||||
btrfs_free_path(path);
|
||||
|
||||
if (err == 0) {
|
||||
/* only inline file may have last_size != new_size */
|
||||
if (new_size >= fs_info->sectorsize ||
|
||||
new_size > fs_info->max_inline)
|
||||
ASSERT(last_size == new_size);
|
||||
}
|
||||
|
||||
if (be_nice && bytes_deleted > SZ_32M) {
|
||||
unsigned long updates = trans->delayed_ref_updates;
|
||||
if (updates) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue