Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-17745 llite: fix the umount panic due to BDI unregister
[fs/lustre-release.git]
/
lustre
/
llite
/
llite_lib.c
diff --git
a/lustre/llite/llite_lib.c
b/lustre/llite/llite_lib.c
index
ce2af4e
..
8babc83
100644
(file)
--- a/
lustre/llite/llite_lib.c
+++ b/
lustre/llite/llite_lib.c
@@
-1515,16
+1515,12
@@
out_free_cfg:
static void ll_bdi_device_unregister(struct backing_dev_info *bdi)
{
static void ll_bdi_device_unregister(struct backing_dev_info *bdi)
{
+#if !defined(HAVE_BDI_DEBUG_STATS) && defined(SB_I_CGROUPWB) && \
+ !defined(SB_I_PERSB_BDI)
if (bdi->dev == NULL)
return;
if (bdi->dev == NULL)
return;
-#if defined(SB_I_CGROUPWB) && !defined(SB_I_PERSB_BDI)
-#ifdef HAVE_BDI_DEBUG_STATS
- debugfs_remove(bdi->debug_stats);
- debugfs_remove(bdi->debug_dir);
-#else
debugfs_remove_recursive(bdi->debug_dir);
debugfs_remove_recursive(bdi->debug_dir);
-#endif
device_unregister(bdi->dev);
bdi->dev = NULL;
#endif
device_unregister(bdi->dev);
bdi->dev = NULL;
#endif