···267{268 debugfs_remove(bt->msg_file);269 debugfs_remove(bt->dropped_file);270- debugfs_remove(bt->dir);271 relay_close(bt->rchan);0272 free_percpu(bt->sequence);273 free_percpu(bt->msg_data);274 kfree(bt);···378379static int blk_remove_buf_file_callback(struct dentry *dentry)380{381- struct dentry *parent = dentry->d_parent;382 debugfs_remove(dentry);383384- /*385- * this will fail for all but the last file, but that is ok. what we386- * care about is the top level buts->name directory going away, when387- * the last trace file is gone. Then we don't have to rmdir() that388- * manually on trace stop, so it nicely solves the issue with389- * force killing of running traces.390- */391-392- debugfs_remove(parent);393 return 0;394}395