Commit 798cb7f
Al Viro
swapon(2)/swapoff(2): don't bother with block size
once upon a time that used to matter; these days we do swap IO for
swap devices at the level that doesn't give a damn about block size,
buffer_head or anything of that sort - just attach the page to
bio, set the location and size (the latter to PAGE_SIZE) and feed
into queue.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 3a52c03 commit 798cb7f
2 files changed
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | 304 | | |
306 | 305 | | |
307 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2417 | 2417 | | |
2418 | 2418 | | |
2419 | 2419 | | |
2420 | | - | |
2421 | 2420 | | |
2422 | 2421 | | |
2423 | 2422 | | |
| |||
2529 | 2528 | | |
2530 | 2529 | | |
2531 | 2530 | | |
2532 | | - | |
2533 | 2531 | | |
2534 | 2532 | | |
2535 | 2533 | | |
| |||
2553 | 2551 | | |
2554 | 2552 | | |
2555 | 2553 | | |
2556 | | - | |
2557 | 2554 | | |
2558 | 2555 | | |
2559 | 2556 | | |
| |||
2782 | 2779 | | |
2783 | 2780 | | |
2784 | 2781 | | |
2785 | | - | |
2786 | | - | |
2787 | 2782 | | |
2788 | 2783 | | |
2789 | 2784 | | |
2790 | 2785 | | |
2791 | | - | |
| 2786 | + | |
2792 | 2787 | | |
2793 | 2788 | | |
2794 | 2789 | | |
2795 | 2790 | | |
2796 | | - | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | 2791 | | |
2801 | 2792 | | |
2802 | 2793 | | |
| |||
3235 | 3226 | | |
3236 | 3227 | | |
3237 | 3228 | | |
3238 | | - | |
3239 | 3229 | | |
3240 | 3230 | | |
3241 | 3231 | | |
| |||
0 commit comments