OSDN Git Service

Btrfs: remove ASSERT in btrfs_truncate_inode_items
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 3 Mar 2017 02:41:19 +0000 (18:41 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:23 +0000 (14:07 +0200)
commitf95fda8751b7b243c810805d1deaae502716d8fb
tree868bfcd3787bc950f1873950989e6f5ce55db123
parent14506127979a5a3d0c5d9b4cc76ce9d4ec23b717
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>
fs/btrfs/inode.c