mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
stop passing nameidata * to ->d_revalidate()
Just the lookup flags. Die, bastard, die... Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
fa3c56bbda
commit
0b728e1911
25 changed files with 74 additions and 84 deletions
|
|
@ -72,7 +72,7 @@ const struct inode_operations ncp_dir_inode_operations =
|
|||
/*
|
||||
* Dentry operations routines
|
||||
*/
|
||||
static int ncp_lookup_validate(struct dentry *, struct nameidata *);
|
||||
static int ncp_lookup_validate(struct dentry *, unsigned int);
|
||||
static int ncp_hash_dentry(const struct dentry *, const struct inode *,
|
||||
struct qstr *);
|
||||
static int ncp_compare_dentry(const struct dentry *, const struct inode *,
|
||||
|
|
@ -290,7 +290,7 @@ leave_me:;
|
|||
|
||||
|
||||
static int
|
||||
ncp_lookup_validate(struct dentry *dentry, struct nameidata *nd)
|
||||
ncp_lookup_validate(struct dentry *dentry, unsigned int flags)
|
||||
{
|
||||
struct ncp_server *server;
|
||||
struct dentry *parent;
|
||||
|
|
@ -302,7 +302,7 @@ ncp_lookup_validate(struct dentry *dentry, struct nameidata *nd)
|
|||
if (dentry == dentry->d_sb->s_root)
|
||||
return 1;
|
||||
|
||||
if (nd->flags & LOOKUP_RCU)
|
||||
if (flags & LOOKUP_RCU)
|
||||
return -ECHILD;
|
||||
|
||||
parent = dget_parent(dentry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue