From e6c757021fa8cc9d6096be162281bc7624d73f99 Mon Sep 17 00:00:00 2001 From: Shiyong Li Date: Fri, 8 Dec 2017 17:37:20 -0800 Subject: [PATCH] fs/exfat: fix every bio only has one block This patch fix the bug that exfat fs cannot write continuous blocks in one bio. This will cause every request submit in block layer only contains one block, cause write speed slower. Change-Id: Ia548a7d8051defc1498d2d11d39e069bf683fdff Signed-off-by: haojl2 Signed-off-by: Shiyong Li Reviewed-on: https://gerrit.mot.com/1102183 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Igor Kovalenko Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1276884 Reviewed-by: Hua Tan --- fs/exfat/exfat_super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/exfat/exfat_super.c b/fs/exfat/exfat_super.c index da464a11474b..53e21a3db873 100644 --- a/fs/exfat/exfat_super.c +++ b/fs/exfat/exfat_super.c @@ -1630,8 +1630,8 @@ static int exfat_writepages(struct address_space *mapping, { if (exfat_readonly(mapping->host->i_sb)) return -EROFS; - /* get_block should be NULL to call ->writepage and catch end_io */ - return mpage_writepages(mapping, wbc, NULL); + + return mpage_writepages(mapping, wbc, exfat_get_block); } #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34) -- 2.20.1