summaryrefslogtreecommitdiff
path: root/fs/bcachefs/move.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-09-07 16:13:20 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:26 -0400
commit8d84260ec1b11c20a7f01797b34fcbc12b33fd70 (patch)
tree6d49bf909d600e0f4ad8feaa52407c3c4083925c /fs/bcachefs/move.c
parentb50dd7920d1cd7b37016929faa175578de12dd27 (diff)
downloadlwn-8d84260ec1b11c20a7f01797b34fcbc12b33fd70.tar.gz
lwn-8d84260ec1b11c20a7f01797b34fcbc12b33fd70.zip
bcachefs: data move path should not be trying to move reflink_p keys
This was spotted when the move_extent() path tried to allocate a bio for a reflink_p extent, but adding pages to the bio failed because we overflowed bi_max_vecs. Oops. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/move.c')
-rw-r--r--fs/bcachefs/move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
index d01c96ff00d7..8855dd19f7f2 100644
--- a/fs/bcachefs/move.c
+++ b/fs/bcachefs/move.c
@@ -547,7 +547,7 @@ peek:
if (bkey_cmp(bkey_start_pos(k.k), end) >= 0)
break;
- if (!bkey_extent_is_data(k.k))
+ if (!bkey_extent_is_direct_data(k.k))
goto next_nondata;
if (cur_inum != k.k->p.inode) {