mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-27 18:43:13 +00:00
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:
+6
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user