scoutfs: add btree deletion trace message

Add a simple trace message with the result of item deletion calls.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-09-08 14:43:13 -07:00
parent b55da5ecb7
commit f44306757c
+6 -2
View File
@@ -963,8 +963,10 @@ int scoutfs_btree_delete(struct super_block *sb, struct scoutfs_key *key)
int ret;
bh = btree_walk(sb, key, NULL, 0, 0, WALK_DELETE);
if (IS_ERR(bh))
return PTR_ERR(bh);
if (IS_ERR(bh)) {
ret = PTR_ERR(bh);
goto out;
}
bt = bh_data(bh);
pos = find_pos(bt, key, &cmp);
@@ -991,6 +993,8 @@ int scoutfs_btree_delete(struct super_block *sb, struct scoutfs_key *key)
unlock_block(NULL, bh, true);
scoutfs_block_put(bh);
out:
trace_printk("key "CKF" ret %d\n", CKA(key), ret);
return ret;
}