Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
cf1308ff
Commit
cf1308ff
authored
Nov 19, 2006
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Fix missing page_unlock() in nfs_readpage
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
0b671301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
fs/nfs/read.c
fs/nfs/read.c
+6
-4
No files found.
fs/nfs/read.c
View file @
cf1308ff
...
...
@@ -145,12 +145,12 @@ static int nfs_readpage_sync(struct nfs_open_context *ctx, struct inode *inode,
{
unsigned
int
rsize
=
NFS_SERVER
(
inode
)
->
rsize
;
unsigned
int
count
=
PAGE_CACHE_SIZE
;
int
result
;
int
result
=
-
ENOMEM
;
struct
nfs_read_data
*
rdata
;
rdata
=
nfs_readdata_alloc
(
count
);
if
(
!
rdata
)
return
-
ENOMEM
;
goto
out_unlock
;
memset
(
rdata
,
0
,
sizeof
(
*
rdata
));
rdata
->
flags
=
(
IS_SWAPFILE
(
inode
)
?
NFS_RPC_SWAPFLAGS
:
0
);
...
...
@@ -218,8 +218,9 @@ static int nfs_readpage_sync(struct nfs_open_context *ctx, struct inode *inode,
result
=
0
;
io_error:
unlock_page
(
page
);
nfs_readdata_free
(
rdata
);
out_unlock:
unlock_page
(
page
);
return
result
;
}
...
...
@@ -630,9 +631,10 @@ int nfs_readpage(struct file *file, struct page *page)
goto
out_error
;
if
(
file
==
NULL
)
{
error
=
-
EBADF
;
ctx
=
nfs_find_open_context
(
inode
,
NULL
,
FMODE_READ
);
if
(
ctx
==
NULL
)
return
-
EBADF
;
goto
out_error
;
}
else
ctx
=
get_nfs_open_context
((
struct
nfs_open_context
*
)
file
->
private_data
);
...
...
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