mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-19 22:44:19 +00:00
Print inode nr and err on inode upate error
We're currently excessively freaking out if inode updates fail. Let's add a little more context to help us track down what goes wrong. Signed-off-by: Zach Brown <zab@versity.com> Reviewed-by: Mark Fasheh <mfasheh@versity.com>
This commit is contained in:
+5
-1
@@ -320,7 +320,11 @@ void scoutfs_update_inode_item(struct inode *inode)
|
||||
scoutfs_kvec_init(val, &sinode, sizeof(sinode));
|
||||
|
||||
err = scoutfs_item_update(sb, &key, val);
|
||||
BUG_ON(err);
|
||||
if (err) {
|
||||
scoutfs_err(sb, "inode %llu update err %d",
|
||||
scoutfs_ino(inode), err);
|
||||
BUG_ON(err);
|
||||
}
|
||||
|
||||
trace_scoutfs_update_inode(inode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user