Files
linux-apfs/fs/mount.h
T

21 lines
431 B
C
Raw Normal View History

#include <linux/mount.h>
2011-11-23 12:14:10 -05:00
struct mount {
2011-11-24 21:01:32 -05:00
struct list_head mnt_hash;
struct mount *mnt_parent;
2011-11-24 22:25:07 -05:00
struct dentry *mnt_mountpoint;
2011-11-23 12:14:10 -05:00
struct vfsmount mnt;
};
static inline struct mount *real_mount(struct vfsmount *mnt)
{
return container_of(mnt, struct mount, mnt);
}
2011-11-24 21:47:05 -05:00
static inline int mnt_has_parent(struct mount *mnt)
{
return mnt != mnt->mnt_parent;
}
extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);