From: Kent Overstreet Date: Fri, 4 Oct 2019 18:39:38 +0000 (-0400) Subject: bcachefs: Only look up inode io opts in extents btree X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bd09d268978e1206d81a169039cf86f639817854;p=linux.git 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 --- 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: */