3 * Definitions for mount interface. This describes the in the kernel build
4 * linkedlist with mounted filesystems.
6 * Author: Marco van Wieringen <mvw@planets.elm.net>
8 * Version: $Id: mount.h,v 1.1.1.1 2005/04/11 02:51:02 jack Exp $
11 #ifndef _LINUX_MOUNT_H
12 #define _LINUX_MOUNT_H
21 struct list_head mnt_hash;
22 struct vfsmount *mnt_parent; /* fs we are mounted on */
23 struct dentry *mnt_mountpoint; /* dentry of mountpoint */
24 struct dentry *mnt_root; /* root of the mounted tree */
25 struct super_block *mnt_sb; /* pointer to superblock */
26 struct list_head mnt_mounts; /* list of children, anchored here */
27 struct list_head mnt_child; /* and going through their mnt_child */
30 char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */
31 struct list_head mnt_list;
34 static inline struct vfsmount *mntget(struct vfsmount *mnt)
37 atomic_inc(&mnt->mnt_count);
41 extern void __mntput(struct vfsmount *mnt);
43 static inline void mntput(struct vfsmount *mnt)
46 if (atomic_dec_and_test(&mnt->mnt_count))
52 #endif /* _LINUX_MOUNT_H */