From: Andrew Morton Cc: Al Viro Cc: Christoph Hellwig Cc: Dave Hansen Signed-off-by: Andrew Morton --- fs/nfsd/vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/nfsd/vfs.c~r-o-bind-mounts-check-mnt-instead-of-superblock-directly-fix-2 fs/nfsd/vfs.c --- a/fs/nfsd/vfs.c~r-o-bind-mounts-check-mnt-instead-of-superblock-directly-fix-2 +++ a/fs/nfsd/vfs.c @@ -1886,7 +1886,7 @@ nfsd_permission(struct svc_rqst *rqstp, if (!(acc & MAY_LOCAL_ACCESS)) if (acc & (MAY_WRITE | MAY_SATTR | MAY_TRUNC)) { if (exp_rdonly(rqstp, exp) || - __mnt_is_readonly(exp->ex_mnt)) + __mnt_is_readonly(exp->ex_path.mnt)) return nfserr_rofs; if (/* (acc & MAY_WRITE) && */ IS_IMMUTABLE(inode)) return nfserr_perm; _