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
nexedi
linux
Commits
98509cfc
Commit
98509cfc
authored
Sep 11, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Fix releasepage to properly keep dirty and writeback pages
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
8d5bf1cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+4
-1
fs/btrfs/inode.c
fs/btrfs/inode.c
+2
-0
No files found.
fs/btrfs/disk-io.c
View file @
98509cfc
...
...
@@ -346,7 +346,7 @@ int btree_readpage_end_io_hook(struct page *page, u64 start, u64 end,
eb
=
alloc_extent_buffer
(
tree
,
start
,
len
,
page
,
GFP_NOFS
);
found_start
=
btrfs_header_bytenr
(
eb
);
if
(
found_start
!=
start
)
{
if
(
0
&&
found_start
!=
start
)
{
printk
(
"bad tree block start %llu %llu
\n
"
,
(
unsigned
long
long
)
found_start
,
(
unsigned
long
long
)
eb
->
start
);
...
...
@@ -592,6 +592,9 @@ static int btree_releasepage(struct page *page, gfp_t gfp_flags)
struct
extent_map_tree
*
map
;
int
ret
;
if
(
PageWriteback
(
page
)
||
PageDirty
(
page
))
return
0
;
tree
=
&
BTRFS_I
(
page
->
mapping
->
host
)
->
io_tree
;
map
=
&
BTRFS_I
(
page
->
mapping
->
host
)
->
extent_tree
;
...
...
fs/btrfs/inode.c
View file @
98509cfc
...
...
@@ -3060,6 +3060,8 @@ static int __btrfs_releasepage(struct page *page, gfp_t gfp_flags)
static
int
btrfs_releasepage
(
struct
page
*
page
,
gfp_t
gfp_flags
)
{
if
(
PageWriteback
(
page
)
||
PageDirty
(
page
))
return
0
;
return
__btrfs_releasepage
(
page
,
gfp_flags
);
}
...
...
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