NFSv4.2: alloc_file_pseudo() takes an open flag, not an f_mode
Subsystems (2)
[email protected]
maintainerPATCH 1/1 NFSv4.2: alloc_file_pseudo() takes an open flag, not an f_mode
From: Trond Myklebust <[email protected]>
Signed-off-by Trond Myklebust <[email protected]>
--- fs/nfs/nfs4file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4file.c +1 -1
@@ -351,7 +351,7 @@ 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);
Signature · 1 line
2.33.1