* Returns: NULL (ok), ERR_PTR if an error occurred.
* Fills in lower_parent_path with <dentry,mnt> on success.
*/
-static struct dentry *__wrapfs_lookup(struct dentry *dentry, int flags,
+static struct dentry *__wrapfs_lookup(struct dentry *dentry,
+ unsigned int flags,
struct path *lower_parent_path)
{
int err = 0;
}
struct dentry *wrapfs_lookup(struct inode *dir, struct dentry *dentry,
- struct nameidata *nd)
+ unsigned int flags)
{
struct dentry *ret, *parent;
struct path lower_parent_path;
int err = 0;
- BUG_ON(!nd);
parent = dget_parent(dentry);
wrapfs_get_lower_path(parent, &lower_parent_path);
ret = ERR_PTR(err);
goto out;
}
- ret = __wrapfs_lookup(dentry, nd->flags, &lower_parent_path);
+ ret = __wrapfs_lookup(dentry, flags, &lower_parent_path);
if (IS_ERR(ret))
goto out;
if (ret)
extern void free_dentry_private_data(struct dentry *dentry);
extern int init_lower_nd(struct nameidata *nd, unsigned int flags);
extern struct dentry *wrapfs_lookup(struct inode *dir, struct dentry *dentry,
- struct nameidata *nd);
+ unsigned int flags);
extern struct inode *wrapfs_iget(struct super_block *sb,
struct inode *lower_inode);
extern int wrapfs_interpose(struct dentry *dentry, struct super_block *sb,