+2
−0
+6
−1
+5
−0
Loading
hulk inclusion category: performance bugzilla: https://gitee.com/openeuler/kernel/issues/IAO6NS -------------------------------- The tmpfs supports large folio, but there is some configurable options to enable/disable large folio allocation, and for huge=within_size, large folio only allowabled if it fully within i_size, so there is performance issue when perform write without large folio, it is very similar with commit 4e527d5841e2 ("iomap: fault in smaller chunks for non-large folio mappings"), Fix it by checking whether it allows large folio allocation or not before perform write. Fixes: 9aac777aaf94 ("filemap: Convert generic_perform_write() to support large folios") Signed-off-by:Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by:
Liu Shixin <liushixin2@huawei.com>