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:
Родитель
3c150f0081
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче