From bd09d268978e1206d81a169039cf86f639817854 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 4 Oct 2019 14:39:38 -0400 Subject: [PATCH] bcachefs: Only look up inode io opts in extents btree We currently don't have a way to propagate inode io opts to indirect extents. This is a problem... Signed-off-by: Kent Overstreet --- fs/bcachefs/move.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index 2f0bdfbfcd610..c5d3375882d7c 100644 --- a/fs/bcachefs/move.c +++ b/fs/bcachefs/move.c @@ -549,7 +549,8 @@ peek: if (!bkey_extent_is_direct_data(k.k)) goto next_nondata; - if (cur_inum != k.k->p.inode) { + if (btree_id == BTREE_ID_EXTENTS && + cur_inum != k.k->p.inode) { struct bch_inode_unpacked inode; /* don't hold btree locks while looking up inode: */ -- 2.30.2