Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8d2009a1
Commit
8d2009a1
authored
Nov 18, 2020
by
Chuck Lever
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSD: Update the NFSv2 ACL GETATTR result encoder to use struct xdr_stream
Signed-off-by:
Chuck Lever
<
chuck.lever@oracle.com
>
parent
778f068f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
fs/nfsd/nfs2acl.c
fs/nfsd/nfs2acl.c
+2
-22
No files found.
fs/nfsd/nfs2acl.c
View file @
8d2009a1
...
...
@@ -279,19 +279,6 @@ static int nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p)
return
1
;
}
static
int
nfsaclsvc_encode_attrstatres
(
struct
svc_rqst
*
rqstp
,
__be32
*
p
)
{
struct
nfsd_attrstat
*
resp
=
rqstp
->
rq_resp
;
*
p
++
=
resp
->
status
;
if
(
resp
->
status
!=
nfs_ok
)
goto
out
;
p
=
nfs2svc_encode_fattr
(
rqstp
,
p
,
&
resp
->
fh
,
&
resp
->
stat
);
out:
return
xdr_ressize_check
(
rqstp
,
p
);
}
/* ACCESS */
static
int
nfsaclsvc_encode_accessres
(
struct
svc_rqst
*
rqstp
,
__be32
*
p
)
{
...
...
@@ -319,13 +306,6 @@ static void nfsaclsvc_release_getacl(struct svc_rqst *rqstp)
posix_acl_release
(
resp
->
acl_default
);
}
static
void
nfsaclsvc_release_attrstat
(
struct
svc_rqst
*
rqstp
)
{
struct
nfsd_attrstat
*
resp
=
rqstp
->
rq_resp
;
fh_put
(
&
resp
->
fh
);
}
static
void
nfsaclsvc_release_access
(
struct
svc_rqst
*
rqstp
)
{
struct
nfsd3_accessres
*
resp
=
rqstp
->
rq_resp
;
...
...
@@ -376,8 +356,8 @@ static const struct svc_procedure nfsd_acl_procedures2[5] = {
[
ACLPROC2_GETATTR
]
=
{
.
pc_func
=
nfsacld_proc_getattr
,
.
pc_decode
=
nfssvc_decode_fhandleargs
,
.
pc_encode
=
nfs
acl
svc_encode_attrstatres
,
.
pc_release
=
nfs
acl
svc_release_attrstat
,
.
pc_encode
=
nfssvc_encode_attrstatres
,
.
pc_release
=
nfssvc_release_attrstat
,
.
pc_argsize
=
sizeof
(
struct
nfsd_fhandle
),
.
pc_ressize
=
sizeof
(
struct
nfsd_attrstat
),
.
pc_cachetype
=
RC_NOCACHE
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment