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
a6d90385
Commit
a6d90385
authored
Dec 24, 2022
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: (invalidate|release)_folio fixes
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
3a0e06db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
fs/bcachefs/fs-io.c
fs/bcachefs/fs-io.c
+1
-4
No files found.
fs/bcachefs/fs-io.c
View file @
a6d90385
...
@@ -736,9 +736,6 @@ vm_fault_t bch2_page_mkwrite(struct vm_fault *vmf)
...
@@ -736,9 +736,6 @@ vm_fault_t bch2_page_mkwrite(struct vm_fault *vmf)
void
bch2_invalidate_folio
(
struct
folio
*
folio
,
size_t
offset
,
size_t
length
)
void
bch2_invalidate_folio
(
struct
folio
*
folio
,
size_t
offset
,
size_t
length
)
{
{
EBUG_ON
(
!
PageLocked
(
&
folio
->
page
));
EBUG_ON
(
folio_test_writeback
(
folio
));
if
(
offset
||
length
<
folio_size
(
folio
))
if
(
offset
||
length
<
folio_size
(
folio
))
return
;
return
;
...
@@ -751,7 +748,7 @@ bool bch2_release_folio(struct folio *folio, gfp_t gfp_mask)
...
@@ -751,7 +748,7 @@ bool bch2_release_folio(struct folio *folio, gfp_t gfp_mask)
EBUG_ON
(
!
PageLocked
(
&
folio
->
page
));
EBUG_ON
(
!
PageLocked
(
&
folio
->
page
));
EBUG_ON
(
folio_test_writeback
(
folio
));
EBUG_ON
(
folio_test_writeback
(
folio
));
if
(
folio_test_dirty
(
folio
))
if
(
folio_test_dirty
(
folio
)
||
folio_test_writeback
(
folio
)
)
return
false
;
return
false
;
bch2_clear_page_bits
(
&
folio
->
page
);
bch2_clear_page_bits
(
&
folio
->
page
);
...
...
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