Commit 617fb10
btrfs: use the folio iterator in btrfs_end_super_write()
Iterate over folios instead of bvecs. Switch the order of unlock and put
to be the usual order; we know this folio can't be put until it's been
waited for, but that's fragile. Remove the calls to ClearPageUptodate /
SetPageUptodate -- if PAGE_SIZE is larger than BTRFS_SUPER_INFO_SIZE,
we'd be marking the entire folio uptodate without having actually
initialised all the bytes in the page.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent f93ee0d commit 617fb10
1 file changed
+6
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3626 | 3626 | | |
3627 | 3627 | | |
3628 | 3628 | | |
3629 | | - | |
3630 | | - | |
3631 | | - | |
3632 | | - | |
3633 | | - | |
3634 | | - | |
| 3629 | + | |
3635 | 3630 | | |
| 3631 | + | |
3636 | 3632 | | |
3637 | 3633 | | |
3638 | | - | |
| 3634 | + | |
3639 | 3635 | | |
3640 | 3636 | | |
3641 | | - | |
3642 | | - | |
| 3637 | + | |
3643 | 3638 | | |
3644 | 3639 | | |
3645 | | - | |
3646 | | - | |
3647 | 3640 | | |
3648 | 3641 | | |
3649 | | - | |
3650 | | - | |
| 3642 | + | |
| 3643 | + | |
3651 | 3644 | | |
3652 | 3645 | | |
3653 | 3646 | | |
| |||
0 commit comments