From 6992268e5878f66313fee73b695260a2adb7a67a Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Sat, 20 Aug 2005 18:41:39 +0000 Subject: [PATCH] - update bind mount patch to patch-2.6.11-rc5-bme0.06.1.diff --- include/linux/fs.h | 13 +++++++------ include/linux/mount.h | 4 ++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 9f165d304..63aa1452a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -9,6 +9,7 @@ #include #include #include +#include /* * It's silly to have NR_OPEN bigger than NR_FILE, but you can change @@ -853,12 +854,12 @@ static inline void unlock_super(struct super_block * sb) * VFS helper functions.. */ extern int vfs_create(struct inode *, struct dentry *, int, struct nameidata *); -extern int vfs_mkdir(struct inode *, struct dentry *, int); -extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t); -extern int vfs_symlink(struct inode *, struct dentry *, const char *, int); -extern int vfs_link(struct dentry *, struct inode *, struct dentry *); -extern int vfs_rmdir(struct inode *, struct dentry *); -extern int vfs_unlink(struct inode *, struct dentry *); +extern int vfs_mkdir(struct inode *, struct dentry *, int, struct nameidata *); +extern int vfs_mknod(struct inode *, struct dentry *, int, dev_t, struct nameidata *); +extern int vfs_symlink(struct inode *, struct dentry *, const char *, int, struct nameidata *); +extern int vfs_link(struct dentry *, struct inode *, struct dentry *, struct nameidata *); +extern int vfs_rmdir(struct inode *, struct dentry *, struct nameidata *); +extern int vfs_unlink(struct inode *, struct dentry *, struct nameidata *); extern int vfs_rename(struct inode *, struct dentry *, struct inode *, struct dentry *); /* diff --git a/include/linux/mount.h b/include/linux/mount.h index 07d42ab88..262a55e2e 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h @@ -47,6 +47,10 @@ struct vfsmount #define MNT_IS_NOATIME(m) ((m) && ((m)->mnt_flags & MNT_NOATIME)) #define MNT_IS_NODIRATIME(m) ((m) && ((m)->mnt_flags & MNT_NODIRATIME)) +#define MNT_IS_RDONLY(m) ((m) && ((m)->mnt_flags & MNT_RDONLY)) +#define MNT_IS_NOATIME(m) ((m) && ((m)->mnt_flags & MNT_NOATIME)) +#define MNT_IS_NODIRATIME(m) ((m) && ((m)->mnt_flags & MNT_NODIRATIME)) + static inline struct vfsmount *mntget(struct vfsmount *mnt) { if (mnt) -- 2.47.0