summaryrefslogtreecommitdiffstats
path: root/include/linux/mount.h
blob: 4abeda6b794264c992f8ef793918c7fe23b6efaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0-only */

/*
 *
 * Definitions for mount interface. This describes the in the kernel build
 * linkedlist with mounted filesystems.
 *
 * Author:  Marco van Wieringen <mvw@planets.elm.net>
 *
 */
#ifndef _LINUX_MOUNT_H
#define _LINUX_MOUNT_H

#include <linux/dcache.h>
#include <linux/fs.h>

struct vfsmount {
	struct dentry *mnt_root;	/* root of the mounted tree */
	struct dentry *mountpoint;	/* where it's mounted (barebox specific, no support */
	struct vfsmount *parent;	/* for bind mounts and the like) */
	struct super_block *mnt_sb;	/* pointer to superblock */
	int mnt_flags;
	int ref;
};

#endif /* _LINUX_MOUNT_H */