diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-03-03 03:41:19 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-04-18 14:07:23 +0200 |
commit | f95fda8751b7b243c810805d1deaae502716d8fb (patch) | |
tree | 868bfcd3787bc950f1873950989e6f5ce55db123 /fs/btrfs/inode.c | |
parent | btrfs: fix a bogus warning when converting only data or metadata (diff) | |
download | linux-f95fda8751b7b243c810805d1deaae502716d8fb.tar.xz linux-f95fda8751b7b243c810805d1deaae502716d8fb.zip |
Btrfs: remove ASSERT in btrfs_truncate_inode_items
After 76b42abbf748 ("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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 5e71f1ea3391..568b28114f09 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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) { |