mnt: Use generic ns_common::count
[linux-2.6-block.git] / fs / mount.h
index c7abb7b394d8eed9ca2833e656d345fc44e3a402..ce6c376e0bc2d9378af90d141d12bf387d9c11b9 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/fs_pin.h>
 
 struct mnt_namespace {
-       atomic_t                count;
        struct ns_common        ns;
        struct mount *  root;
        /*
@@ -120,7 +119,7 @@ static inline void detach_mounts(struct dentry *dentry)
 
 static inline void get_mnt_ns(struct mnt_namespace *ns)
 {
-       atomic_inc(&ns->count);
+       refcount_inc(&ns->ns.count);
 }
 
 extern seqlock_t mount_lock;