summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/inode.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-08-06 16:04:05 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:10:09 +0200
commite691b391f02b2ddef1a784ea2d4cd3f46bb6a62a (patch)
tree16fe97f83500b768b79cc2f37ac757dc374888c7 /fs/bcachefs/inode.c
parentbcachefs: Fix lock thrashing in __bchfs_fallocate() (diff)
downloadlinux-e691b391f02b2ddef1a784ea2d4cd3f46bb6a62a.tar.xz
linux-e691b391f02b2ddef1a784ea2d4cd3f46bb6a62a.zip
bcachefs: Add logging to bch2_inode_peek() & related
Add error messages when we fail to lookup an inode, and also add a few missing bch2_err_class() calls. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.c')
-rw-r--r--fs/bcachefs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c
index 294966e42850..e0d416553bf0 100644
--- a/fs/bcachefs/inode.c
+++ b/fs/bcachefs/inode.c
@@ -348,6 +348,8 @@ int bch2_inode_peek(struct btree_trans *trans,
return 0;
err:
bch2_trans_iter_exit(trans, iter);
+ if (!bch2_err_matches(ret, BCH_ERR_transaction_restart))
+ bch_err_msg(trans->c, ret, "looking up inum %u:%llu:", inum.subvol, inum.inum);
return ret;
}