···267267{268268 debugfs_remove(bt->msg_file);269269 debugfs_remove(bt->dropped_file);270270- debugfs_remove(bt->dir);271270 relay_close(bt->rchan);271271+ debugfs_remove(bt->dir);272272 free_percpu(bt->sequence);273273 free_percpu(bt->msg_data);274274 kfree(bt);···378378379379static int blk_remove_buf_file_callback(struct dentry *dentry)380380{381381- struct dentry *parent = dentry->d_parent;382381 debugfs_remove(dentry);383382384384- /*385385- * this will fail for all but the last file, but that is ok. what we386386- * care about is the top level buts->name directory going away, when387387- * the last trace file is gone. Then we don't have to rmdir() that388388- * manually on trace stop, so it nicely solves the issue with389389- * force killing of running traces.390390- */391391-392392- debugfs_remove(parent);393383 return 0;394384}395385