From: Josef Sipek Signed-off-by: Josef Sipek Signed-off-by: Andrew Morton --- fs/afs/dir.c | 4 ++-- fs/afs/mntpt.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff -puN fs/afs/dir.c~struct-path-convert-afs fs/afs/dir.c --- a/fs/afs/dir.c~struct-path-convert-afs +++ a/fs/afs/dir.c @@ -392,10 +392,10 @@ static int afs_dir_readdir(struct file * unsigned fpos; 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; - 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; _leave(" = %d", ret); diff -puN fs/afs/mntpt.c~struct-path-convert-afs fs/afs/mntpt.c --- a/fs/afs/mntpt.c~struct-path-convert-afs +++ a/fs/afs/mntpt.c @@ -136,11 +136,11 @@ static int afs_mntpt_open(struct inode * { kenter("%p,%p{%p{%s},%s}", inode, file, - file->f_dentry->d_parent, - file->f_dentry->d_parent ? - file->f_dentry->d_parent->d_name.name : + file->f_path.dentry->d_parent, + file->f_path.dentry->d_parent ? + file->f_path.dentry->d_parent->d_name.name : (const unsigned char *) "", - file->f_dentry->d_name.name); + file->f_path.dentry->d_name.name); return -EREMOTE; } /* end afs_mntpt_open() */ _