|
@@ -263,7 +263,7 @@ static noinline int cow_file_range_inline(struct btrfs_root *root,
|
|
data_len = compressed_size;
|
|
data_len = compressed_size;
|
|
|
|
|
|
if (start > 0 ||
|
|
if (start > 0 ||
|
|
- actual_end > PAGE_CACHE_SIZE ||
|
|
|
|
|
|
+ actual_end > root->sectorsize ||
|
|
data_len > BTRFS_MAX_INLINE_DATA_SIZE(root) ||
|
|
data_len > BTRFS_MAX_INLINE_DATA_SIZE(root) ||
|
|
(!compressed_size &&
|
|
(!compressed_size &&
|
|
(actual_end & (root->sectorsize - 1)) == 0) ||
|
|
(actual_end & (root->sectorsize - 1)) == 0) ||
|