summaryrefslogtreecommitdiff
path: root/fs/devfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2003-07-03 22:06:06 -0700
committerTrond Myklebust <trond.myklebust@fys.uio.no>2003-07-03 22:06:06 -0700
commitfc8b427ef827733152f3e9d9e8b61ac7d69e06a5 (patch)
tree55165056333ffe3f7ba82ed124ab956ef437cba2 /fs/devfs
parent81523bf22b35bb51d40a4553c6e2591969ff40ad (diff)
[PATCH] Add open intent information to the 'struct nameidata'
- Add open intent information to the 'struct nameidata'. - Pass the struct nameidata as an optional parameter to the lookup() inode operation. - Pass the struct nameidata as an optional parameter to the d_revalidate() dentry operation. - Make link_path_walk() set the LOOKUP_CONTINUE flag in nd->flags instead of passing it as an extra parameter to d_revalidate(). - Make open_namei(), and sys_uselib() set the open()/create() intent data.
Diffstat (limited to 'fs/devfs')
-rw-r--r--fs/devfs/base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/devfs/base.c b/fs/devfs/base.c
index c632affe5dae..5c787aaa4901 100644
--- a/fs/devfs/base.c
+++ b/fs/devfs/base.c
@@ -2175,7 +2175,7 @@ static struct dentry_operations devfs_dops =
.d_iput = devfs_d_iput,
};
-static int devfs_d_revalidate_wait (struct dentry *dentry, int flags);
+static int devfs_d_revalidate_wait (struct dentry *dentry, struct nameidata *);
static struct dentry_operations devfs_wait_dops =
{
@@ -2212,7 +2212,7 @@ struct devfs_lookup_struct
/* XXX: this doesn't handle the case where we got a negative dentry
but a devfs entry has been registered in the meanwhile */
-static int devfs_d_revalidate_wait (struct dentry *dentry, int flags)
+static int devfs_d_revalidate_wait (struct dentry *dentry, struct nameidata *nd)
{
struct inode *dir = dentry->d_parent->d_inode;
struct fs_info *fs_info = dir->i_sb->s_fs_info;
@@ -2265,7 +2265,7 @@ static int devfs_d_revalidate_wait (struct dentry *dentry, int flags)
/* Inode operations for device entries follow */
-static struct dentry *devfs_lookup (struct inode *dir, struct dentry *dentry)
+static struct dentry *devfs_lookup (struct inode *dir, struct dentry *dentry, struct nameidata *nd)
{
struct devfs_entry tmp; /* Must stay in scope until devfsd idle again */
struct devfs_lookup_struct lookup_info;