Commit f42a146
btrfs: remove btrfs_set_range_writeback()
The function btrfs_set_range_writeback() is originally a callback for
metadata and data, to mark a range with writeback flag.
Then it was converted into a common function call for both metadata and
data.
>From the very beginning, the function is only called on a full page,
later converted to handle range inside a page.
But it never needs to handle multiple pages, and since commit
8189197 ("btrfs: refactor __extent_writepage_io() to do
sector-by-sector submission") the function is only called on a
sector-by-sector basis.
This makes the function unnecessary, and can be converted to a simple
btrfs_folio_set_writeback() call instead.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 9ca9b86 commit f42a146
3 files changed
+1
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | 580 | | |
582 | 581 | | |
583 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | | - | |
| 1362 | + | |
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8963 | 8963 | | |
8964 | 8964 | | |
8965 | 8965 | | |
8966 | | - | |
8967 | | - | |
8968 | | - | |
8969 | | - | |
8970 | | - | |
8971 | | - | |
8972 | | - | |
8973 | | - | |
8974 | | - | |
8975 | | - | |
8976 | | - | |
8977 | | - | |
8978 | | - | |
8979 | | - | |
8980 | | - | |
8981 | | - | |
8982 | | - | |
8983 | | - | |
8984 | | - | |
8985 | | - | |
8986 | | - | |
8987 | | - | |
8988 | 8966 | | |
8989 | 8967 | | |
8990 | 8968 | | |
| |||
0 commit comments