mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
staging/lustre: make ldebugfs_remove recursive
ldebugfs_remove is usually called on directories with files passed in as attributes, so simple debugfs_remove failes on them as not empty Switch to debugfs_remove_recursive. This fixes a number of problems where a new filesystem is mounted after being unmounted first. Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3c150f0081
commit
6a491f2b80
@@ -329,7 +329,7 @@ EXPORT_SYMBOL(ldebugfs_add_vars);
|
||||
|
||||
void ldebugfs_remove(struct dentry **entryp)
|
||||
{
|
||||
debugfs_remove(*entryp);
|
||||
debugfs_remove_recursive(*entryp);
|
||||
*entryp = NULL;
|
||||
}
|
||||
EXPORT_SYMBOL(ldebugfs_remove);
|
||||
|
||||
Reference in New Issue
Block a user