From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DBE5399CF0 for ; Fri, 21 Aug 2026 11:25:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787311548; cv=none; b=t0dpUy/b+HK3e+pEtbYER6bqoPkSvqMYML/k0shccZH/Ac1nGpRIbw38A/oKYrBZPlDnqv777shOgcr9L3Om/66w9c6SC5IC7bOYRqPr8JZ61sASjY+ZABd/vp/Gws78ppuLbEdTEcEBYbitllPo0U9csI3JpymUE81i3gx4eog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787311548; c=relaxed/simple; bh=gwIlNFunIBSKkmLC/Jm5Dghg40lIGvXCQJpd2ng0gLk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=lz9GLO/DnYu9GiNxz2y0f9P1nolLRJXiqaZRiBjxlgm+P30kXf0iBSaklziM5wdiQ+0eLomwXOyTw1UqgxckatyiTrBXyPtZz/CTjQFhnzjRAa/yM8XJAoZHtFPaMW8lWQrJIPBUVjYExMIaUTJWDVVVHnHyKyt6Ht7RhC2J/vo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=ehwIaAiR; arc=none smtp.client-ip=115.124.30.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="ehwIaAiR" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1787311541; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=y/867Gz4hyyV1khkrLV4SyqkiwJeQpPmJVYuZX3Z/J0=; b=ehwIaAiRhWzP8NHnOsHonbFzvK8lkxQeaRbJAfqdU/7RJ331WHJ42GsjdKhWeyG5dUzr7wrBHg02BIvhavevIa6w1b3VJm4b/HJ8XWg1hs63eCgVY2eWlkZ7Se9jfMLGjGuQ8DKjHaz/nsuJSU1ZfLyPDo9mtQlNey2hsEWp7mA= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam011083073210;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0X9MAVAi_1787311540; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0X9MAVAi_1787311540 cluster:ay36) by smtp.aliyun-inc.com; Fri, 21 Aug 2026 19:25:41 +0800 From: Jingbo Xu To: xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] erofs: support large folio in inode_share mode Date: Fri, 21 Aug 2026 19:25:40 +0800 Message-Id: <20260821112540.111105-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit erofs_fill_inode() calls mapping_set_large_folios() on each erofs file's own mapping, but in inode_share mode reads are routed to the shared inode's page cache instead, whose mapping never had large folio support enabled. Set up large folios for the shared inode's mapping as well. Signed-off-by: Jingbo Xu --- fs/erofs/ishare.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/erofs/ishare.c b/fs/erofs/ishare.c index 4c7be60565cb..b8897dd6be72 100644 --- a/fs/erofs/ishare.c +++ b/fs/erofs/ishare.c @@ -54,6 +54,7 @@ bool erofs_ishare_fill_inode(struct inode *inode) si->i_mapping->a_ops = aops; si->i_mode = 0444 | S_IFREG; si->i_size = inode->i_size; + mapping_set_large_folios(si->i_mapping); unlock_new_inode(si); } else { kfree(fp.opaque); -- 2.19.1.6.gb485710b