Commit 1d56a969 authored by Josef Sipek's avatar Josef Sipek Committed by Linus Torvalds

[PATCH] struct path: convert afs

Signed-off-by: default avatarJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 514653e2
...@@ -392,10 +392,10 @@ static int afs_dir_readdir(struct file *file, void *cookie, filldir_t filldir) ...@@ -392,10 +392,10 @@ static int afs_dir_readdir(struct file *file, void *cookie, filldir_t filldir)
unsigned fpos; unsigned fpos;
int ret; int ret;
_enter("{%Ld,{%lu}}", file->f_pos, file->f_dentry->d_inode->i_ino); _enter("{%Ld,{%lu}}", file->f_pos, file->f_path.dentry->d_inode->i_ino);
fpos = file->f_pos; fpos = file->f_pos;
ret = afs_dir_iterate(file->f_dentry->d_inode, &fpos, cookie, filldir); ret = afs_dir_iterate(file->f_path.dentry->d_inode, &fpos, cookie, filldir);
file->f_pos = fpos; file->f_pos = fpos;
_leave(" = %d", ret); _leave(" = %d", ret);
......
...@@ -136,11 +136,11 @@ static int afs_mntpt_open(struct inode *inode, struct file *file) ...@@ -136,11 +136,11 @@ static int afs_mntpt_open(struct inode *inode, struct file *file)
{ {
kenter("%p,%p{%p{%s},%s}", kenter("%p,%p{%p{%s},%s}",
inode, file, inode, file,
file->f_dentry->d_parent, file->f_path.dentry->d_parent,
file->f_dentry->d_parent ? file->f_path.dentry->d_parent ?
file->f_dentry->d_parent->d_name.name : file->f_path.dentry->d_parent->d_name.name :
(const unsigned char *) "", (const unsigned char *) "",
file->f_dentry->d_name.name); file->f_path.dentry->d_name.name);
return -EREMOTE; return -EREMOTE;
} /* end afs_mntpt_open() */ } /* end afs_mntpt_open() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment