summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2016-01-27 12:53:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-01 09:16:13 +0100
commit3243c0d236669b9d4861151dd47bc753f47b669f (patch)
tree692f1bf6c23cd2d8f838a9b6f553e0fd30ad22ac /fs/ubifs
parentb456308c4ce4f4045428b45f143851b4ae0256c3 (diff)
downloadbarebox-3243c0d236669b9d4861151dd47bc753f47b669f.tar.gz
barebox-3243c0d236669b9d4861151dd47bc753f47b669f.tar.xz
fs: ubifs: move vfsmount definition to include/linux/mount.h
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/ubifs.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 424b1545b1..8f362edf2e 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -38,6 +38,7 @@
#include <linux/pagemap.h>
#include <linux/stat.h>
#include <linux/dcache.h>
+#include <linux/mount.h>
#include <linux/ctype.h>
#include <linux/math64.h>
#include <linux/rbtree.h>
@@ -91,40 +92,6 @@ struct file_system_type {
struct list_head fs_supers;
};
-struct vfsmount {
- struct list_head mnt_hash;
- struct vfsmount *mnt_parent; /* fs we are mounted on */
- struct dentry *mnt_mountpoint; /* dentry of mountpoint */
- struct dentry *mnt_root; /* root of the mounted tree */
- struct super_block *mnt_sb; /* pointer to superblock */
- struct list_head mnt_mounts; /* list of children, anchored here */
- struct list_head mnt_child; /* and going through their mnt_child */
- int mnt_flags;
- /* 4 bytes hole on 64bits arches */
- const char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */
- struct list_head mnt_list;
- struct list_head mnt_expire; /* link in fs-specific expiry list */
- struct list_head mnt_share; /* circular list of shared mounts */
- struct list_head mnt_slave_list;/* list of slave mounts */
- struct list_head mnt_slave; /* slave list entry */
- struct vfsmount *mnt_master; /* slave is on master->mnt_slave_list */
- struct mnt_namespace *mnt_ns; /* containing namespace */
- int mnt_id; /* mount identifier */
- int mnt_group_id; /* peer group identifier */
- /*
- * We put mnt_count & mnt_expiry_mark at the end of struct vfsmount
- * to let these frequently modified fields in a separate cache line
- * (so that reads of mnt_flags wont ping-pong on SMP machines)
- */
- int mnt_expiry_mark; /* true if marked for expiry */
- int mnt_pinned;
- int mnt_ghosts;
- /*
- * This value is not stable unless all of the mnt_writers[] spinlocks
- * are held, and all mnt_writer[]s on this mount have 0 as their ->count
- */
-};
-
struct path {
struct vfsmount *mnt;
struct dentry *dentry;