Commit 0914882
exfat: reduce unnecessary writes during mmap write
During mmap write, exfat_page_mkwrite() currently extends
valid_size to the end of the VMA range. For a large mapping,
this can push valid_size far beyond the page that actually
triggered the fault, resulting in unnecessary writes.
valid_size only needs to extend to the end of the page
being written.
Signed-off-by: Yuling Dong <yuling-dong@qq.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>1 parent 8ffe56b commit 0914882
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
712 | | - | |
713 | | - | |
| 711 | + | |
714 | 712 | | |
715 | | - | |
| 713 | + | |
716 | 714 | | |
717 | 715 | | |
718 | 716 | | |
719 | 717 | | |
720 | | - | |
721 | | - | |
722 | | - | |
| 718 | + | |
| 719 | + | |
723 | 720 | | |
724 | | - | |
725 | | - | |
| 721 | + | |
| 722 | + | |
726 | 723 | | |
727 | 724 | | |
728 | 725 | | |
| |||
0 commit comments