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:
Zach Brown
2017-04-18 14:06:26 -07:00
parent 2591e54fdc
commit 78d15a019c
+5 -1
View File
@@ -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);
}