Commit 8e50e23
ext4: support large block size in mpage_prepare_extent_to_map()
Use the EXT4_PG_TO_LBLK/EXT4_LBLK_TO_PG macros to complete the conversion
between folio indexes and blocks to avoid negative left/right shifts after
supporting blocksize greater than PAGE_SIZE.
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Message-ID: <20251121090654.631996-20-libaokun@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent b967ab7 commit 8e50e23
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2620 | 2620 | | |
2621 | 2621 | | |
2622 | 2622 | | |
2623 | | - | |
2624 | 2623 | | |
2625 | 2624 | | |
2626 | 2625 | | |
| |||
2659 | 2658 | | |
2660 | 2659 | | |
2661 | 2660 | | |
2662 | | - | |
| 2661 | + | |
2663 | 2662 | | |
2664 | 2663 | | |
2665 | 2664 | | |
| |||
2737 | 2736 | | |
2738 | 2737 | | |
2739 | 2738 | | |
2740 | | - | |
2741 | | - | |
| 2739 | + | |
2742 | 2740 | | |
2743 | 2741 | | |
2744 | 2742 | | |
| |||
0 commit comments