switch the IO-triggering parts of umount to fs_pin
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 11 Jan 2015 00:01:08 +0000 (19:01 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Jan 2015 04:17:29 +0000 (23:17 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fs_pin.c
fs/mount.h
fs/namespace.c

index 0c77bdc..b06c987 100644 (file)
@@ -1,7 +1,6 @@
 #include <linux/fs.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
-#include <linux/fs_pin.h>
 #include "internal.h"
 #include "mount.h"
 
index 0ad6f76..6a61c2b 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/seq_file.h>
 #include <linux/poll.h>
 #include <linux/ns_common.h>
+#include <linux/fs_pin.h>
 
 struct mnt_namespace {
        atomic_t                count;
@@ -62,7 +63,8 @@ struct mount {
        int mnt_group_id;               /* peer group identifier */
        int mnt_expiry_mark;            /* true if marked for expiry */
        struct hlist_head mnt_pins;
-       struct path mnt_ex_mountpoint;
+       struct fs_pin mnt_umount;
+       struct dentry *mnt_ex_mountpoint;
 };
 
 #define MNT_NS_INTERNAL ERR_PTR(-EINVAL) /* distinct from any mnt_namespace */
diff --cc fs/namespace.c
Simple merge