Loading fs/btrfs/file.c +4 −3 Original line number Original line Diff line number Diff line Loading @@ -507,11 +507,12 @@ int btrfs_drop_extents(struct btrfs_trans_handle *trans, slot = path->slots[0]; slot = path->slots[0]; ret = 0; ret = 0; btrfs_item_key_to_cpu(leaf, &key, slot); btrfs_item_key_to_cpu(leaf, &key, slot); if (btrfs_key_type(&key) == BTRFS_EXTENT_DATA_KEY && if (key.offset >= end || key.objectid != inode->i_ino) { key.offset >= end) { goto out; goto out; } } if (btrfs_key_type(&key) > BTRFS_EXTENT_DATA_KEY) { if (btrfs_key_type(&key) > BTRFS_EXTENT_DATA_KEY || key.objectid != inode->i_ino) { goto out; goto out; } } if (recow) { if (recow) { Loading Loading
fs/btrfs/file.c +4 −3 Original line number Original line Diff line number Diff line Loading @@ -507,11 +507,12 @@ int btrfs_drop_extents(struct btrfs_trans_handle *trans, slot = path->slots[0]; slot = path->slots[0]; ret = 0; ret = 0; btrfs_item_key_to_cpu(leaf, &key, slot); btrfs_item_key_to_cpu(leaf, &key, slot); if (btrfs_key_type(&key) == BTRFS_EXTENT_DATA_KEY && if (key.offset >= end || key.objectid != inode->i_ino) { key.offset >= end) { goto out; goto out; } } if (btrfs_key_type(&key) > BTRFS_EXTENT_DATA_KEY) { if (btrfs_key_type(&key) > BTRFS_EXTENT_DATA_KEY || key.objectid != inode->i_ino) { goto out; goto out; } } if (recow) { if (recow) { Loading