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
3b14d654
Commit
3b14d654
authored
Apr 16, 2010
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Reduce stack footprint of nfs3_proc_readlink()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
136f2627
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
fs/nfs/nfs3proc.c
fs/nfs/nfs3proc.c
+10
-5
No files found.
fs/nfs/nfs3proc.c
View file @
3b14d654
...
@@ -234,7 +234,7 @@ static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry)
...
@@ -234,7 +234,7 @@ static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry)
static
int
nfs3_proc_readlink
(
struct
inode
*
inode
,
struct
page
*
page
,
static
int
nfs3_proc_readlink
(
struct
inode
*
inode
,
struct
page
*
page
,
unsigned
int
pgbase
,
unsigned
int
pglen
)
unsigned
int
pgbase
,
unsigned
int
pglen
)
{
{
struct
nfs_fattr
fattr
;
struct
nfs_fattr
*
fattr
;
struct
nfs3_readlinkargs
args
=
{
struct
nfs3_readlinkargs
args
=
{
.
fh
=
NFS_FH
(
inode
),
.
fh
=
NFS_FH
(
inode
),
.
pgbase
=
pgbase
,
.
pgbase
=
pgbase
,
...
@@ -244,14 +244,19 @@ static int nfs3_proc_readlink(struct inode *inode, struct page *page,
...
@@ -244,14 +244,19 @@ static int nfs3_proc_readlink(struct inode *inode, struct page *page,
struct
rpc_message
msg
=
{
struct
rpc_message
msg
=
{
.
rpc_proc
=
&
nfs3_procedures
[
NFS3PROC_READLINK
],
.
rpc_proc
=
&
nfs3_procedures
[
NFS3PROC_READLINK
],
.
rpc_argp
=
&
args
,
.
rpc_argp
=
&
args
,
.
rpc_resp
=
&
fattr
,
};
};
int
status
;
int
status
=
-
ENOMEM
;
dprintk
(
"NFS call readlink
\n
"
);
dprintk
(
"NFS call readlink
\n
"
);
nfs_fattr_init
(
&
fattr
);
fattr
=
nfs_alloc_fattr
();
if
(
fattr
==
NULL
)
goto
out
;
msg
.
rpc_resp
=
fattr
;
status
=
rpc_call_sync
(
NFS_CLIENT
(
inode
),
&
msg
,
0
);
status
=
rpc_call_sync
(
NFS_CLIENT
(
inode
),
&
msg
,
0
);
nfs_refresh_inode
(
inode
,
&
fattr
);
nfs_refresh_inode
(
inode
,
fattr
);
nfs_free_fattr
(
fattr
);
out:
dprintk
(
"NFS reply readlink: %d
\n
"
,
status
);
dprintk
(
"NFS reply readlink: %d
\n
"
,
status
);
return
status
;
return
status
;
}
}
...
...
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