From 6ac4fbf86fe8c3fbccedd7fa291d58db99eb5679 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Tue, 12 Sep 2017 10:24:28 -0400 Subject: [PATCH] LU-8066 obd: 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. Linux-commit: 6a491f2b80f2806221ba3a5a3e26fbe945f82d83 Change-Id: I49878ea9e28365d7d834497e715eeee21e698eea Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/28818 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/obdclass/lprocfs_status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 79c1413..7a3c683 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -185,7 +185,7 @@ EXPORT_SYMBOL(lprocfs_add_vars); void ldebugfs_remove(struct dentry **entryp) { - debugfs_remove(*entryp); + debugfs_remove_recursive(*entryp); *entryp = NULL; } EXPORT_SYMBOL_GPL(ldebugfs_remove); -- 1.8.3.1