orangefs: have ->kill_sb() evict the VFS side of things first
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c
index 1eeb009..5a89b80 100644
--- a/fs/orangefs/super.c
+++ b/fs/orangefs/super.c
@@ -505,6 +505,9 @@
{
gossip_debug(GOSSIP_SUPER_DEBUG, "orangefs_kill_sb: called\n");
+ /* provided sb cleanup */
+ kill_anon_super(sb);
+
/*
* issue the unmount to userspace to tell it to remove the
* dynamic mount info it has for this superblock
@@ -514,9 +517,6 @@
/* remove the sb from our list of orangefs specific sb's */
remove_orangefs_sb(sb);
- /* provided sb cleanup */
- kill_anon_super(sb);
-
/* free the orangefs superblock private data */
kfree(ORANGEFS_SB(sb));
}