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
b109eec6
Commit
b109eec6
authored
May 13, 2016
by
Yan, Zheng
Committed by
Ilya Dryomov
May 26, 2016
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: SetPageError() for writeback pages if writepages fails
Signed-off-by:
Yan, Zheng
<
zyan@redhat.com
>
parent
ad15ec06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fs/ceph/addr.c
fs/ceph/addr.c
+3
-1
No files found.
fs/ceph/addr.c
View file @
b109eec6
...
@@ -626,7 +626,6 @@ static void writepages_finish(struct ceph_osd_request *req)
...
@@ -626,7 +626,6 @@ static void writepages_finish(struct ceph_osd_request *req)
struct
ceph_fs_client
*
fsc
=
ceph_inode_to_client
(
inode
);
struct
ceph_fs_client
*
fsc
=
ceph_inode_to_client
(
inode
);
bool
remove_page
;
bool
remove_page
;
dout
(
"writepages_finish %p rc %d
\n
"
,
inode
,
rc
);
dout
(
"writepages_finish %p rc %d
\n
"
,
inode
,
rc
);
if
(
rc
<
0
)
if
(
rc
<
0
)
mapping_set_error
(
mapping
,
rc
);
mapping_set_error
(
mapping
,
rc
);
...
@@ -661,6 +660,9 @@ static void writepages_finish(struct ceph_osd_request *req)
...
@@ -661,6 +660,9 @@ static void writepages_finish(struct ceph_osd_request *req)
clear_bdi_congested
(
&
fsc
->
backing_dev_info
,
clear_bdi_congested
(
&
fsc
->
backing_dev_info
,
BLK_RW_ASYNC
);
BLK_RW_ASYNC
);
if
(
rc
<
0
)
SetPageError
(
page
);
ceph_put_snap_context
(
page_snap_context
(
page
));
ceph_put_snap_context
(
page_snap_context
(
page
));
page
->
private
=
0
;
page
->
private
=
0
;
ClearPagePrivate
(
page
);
ClearPagePrivate
(
page
);
...
...
Kirill Smelkov
@kirr
mentioned in commit
6fc1fe5e
·
Sep 27, 2017
mentioned in commit
6fc1fe5e
mentioned in commit 6fc1fe5e4cfc8939ee59a570b087946042a30140
Toggle commit list
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