mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
NFSv4.2: alloc_file_pseudo() takes an open flag, not an f_mode
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
156cd28562
commit
aa97a3ef15
1 changed files with 1 additions and 2 deletions
|
@ -351,13 +351,12 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt,
|
|||
goto out_free_name;
|
||||
}
|
||||
|
||||
filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, FMODE_READ,
|
||||
filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, O_RDONLY,
|
||||
r_ino->i_fop);
|
||||
if (IS_ERR(filep)) {
|
||||
res = ERR_CAST(filep);
|
||||
goto out_free_name;
|
||||
}
|
||||
filep->f_mode |= FMODE_READ;
|
||||
|
||||
ctx = alloc_nfs_open_context(filep->f_path.dentry, filep->f_mode,
|
||||
filep);
|
||||
|
|
Loading…
Add table
Reference in a new issue