Message ID | 20230417123618.22094-1-p.raghav@samsung.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2094492vqo; Mon, 17 Apr 2023 05:41:53 -0700 (PDT) X-Google-Smtp-Source: AKy350a3QwvHMFyq0FAqVO364Latf9fHXjoFljPZioZLcsxGrEuI9MfMmlgOmG8PY2/s/+Az1UnJ X-Received: by 2002:a05:6a00:1402:b0:62d:e966:ffcb with SMTP id l2-20020a056a00140200b0062de966ffcbmr21504929pfu.0.1681735313308; Mon, 17 Apr 2023 05:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681735313; cv=none; d=google.com; s=arc-20160816; b=VMfNudV/zh9jnFZxQ6BcYcpDASld2H0JUBudwun1j+wt26pdVuCNyn6OzH3tuk2Zx5 U3RtjNzkak4jYdmGFruI/a6ip27UZJWlX3AMYj64ycdINV4WD+Yldc3lzCXcTruUVrpf qqbek2f94E814/vAEQIqWu4WdBp13qK/aZvBDc//xFtPZHoUoqi698n8Fcghc3D/S0bc ytF2vOOOuGQdUWMNvO6l1+DZq6VL8VO6CoOb+v2C7IsfL++X0m8p2pCmdPSnBfsM7XyX KYb7ex/VJhEUEVUJMf0JbYqR6OEEprC1B4D2JDNEZNMcEJUGFUaEmdPsGoxxZAI5xSQi uNTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=l9ZwGTLyjTf03DmTuJBHqfcQ6BV5RQlNjbV6Fd8eyBc=; b=leEeqgKtTM5cJ+7S/5v6Bc7ZlJ8Fo0h6iGQ1Z59cwinAsiS0fzzaKec0NV6P2Cb8iU movI4vFQ2WeaCOsT6dWvYLsiGf3jycqyjyU0Tr89QCpYSQoqnZD/gtE2hln9txAMJdcR sfRTpmTvRrqmqGwjlnmF40jFKq664Ux3Td3ZUCXMCWiFyhvZQGHCQRbnfXwakz6fctvL xHcJowrmmcrCvKwvgzHg46JObQusd1/AcVs88WVA4YCQZpdixJjVUy29P+VrMXNd6BEC Dktc+YyhyYWOAV82EA0d2YDVVS3Qxc0rqz9qqIqv4rMUhPBva08hV/yuoy5yjHR2q8/F vCfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lmlsp8kJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b184-20020a62cfc1000000b0063b235abe2fsi2649463pfg.64.2023.04.17.05.41.38; Mon, 17 Apr 2023 05:41:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lmlsp8kJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbjDQMgg (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Mon, 17 Apr 2023 08:36:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjDQMg1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Apr 2023 08:36:27 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4045B1A2 for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 05:36:24 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230417123621euoutp02f64a7040a55c1854642695020fecb81b~WuQ43f_6K3115431154euoutp02f for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 12:36:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230417123621euoutp02f64a7040a55c1854642695020fecb81b~WuQ43f_6K3115431154euoutp02f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1681734981; bh=l9ZwGTLyjTf03DmTuJBHqfcQ6BV5RQlNjbV6Fd8eyBc=; h=From:To:Cc:Subject:Date:References:From; b=lmlsp8kJY85/VFc2JQlGyib4SN1qZX2fn1wXA04jOgrMKnGl2lHxfEzjNfpzyRtzg mjfD0LaOzKpu+bL6dn3dcaIey6cfhQ0d5vmCaCWWwMkEvrdsGoZVr4bEsZ/A3RJsED pRfggtECb1RNPd/hciC+bm49KuPkqvrPfm3Ckqu4= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230417123620eucas1p2152a1bc5048dfaec7fcc0f2983c69765~WuQ4Eqxxa2223522235eucas1p2I; Mon, 17 Apr 2023 12:36:20 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 45.2D.09503.44D3D346; Mon, 17 Apr 2023 13:36:20 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230417123620eucas1p229311e1b4c661bd493509135ba748300~WuQ3mmY_Y0718407184eucas1p2U; Mon, 17 Apr 2023 12:36:20 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230417123620eusmtrp11ec5b52bd13e6404df7ccad2c2736296~WuQ3l-V2L2401524015eusmtrp13; Mon, 17 Apr 2023 12:36:20 +0000 (GMT) X-AuditID: cbfec7f2-e8fff7000000251f-3c-643d3d44c5aa Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D3.57.22108.44D3D346; Mon, 17 Apr 2023 13:36:20 +0100 (BST) Received: from localhost (unknown [106.210.248.243]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230417123620eusmtip17198797c1b0e9da6546ebc842fb7ce03~WuQ3aQfr32161021610eusmtip1G; Mon, 17 Apr 2023 12:36:19 +0000 (GMT) From: Pankaj Raghav <p.raghav@samsung.com> To: viro@zeniv.linux.org.uk, brauner@kernel.org, willy@infradead.org, akpm@linux-foundation.org Cc: linux-fsdevel@vger.kernel.org, mcgrof@kernel.org, linux-kernel@vger.kernel.org, hare@suse.de, gost.dev@samsung.com, Pankaj Raghav <p.raghav@samsung.com> Subject: [PATCH 0/4] convert create_page_buffers to folio_create_buffers Date: Mon, 17 Apr 2023 14:36:14 +0200 Message-Id: <20230417123618.22094-1-p.raghav@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOKsWRmVeSWpSXmKPExsWy7djPc7outrYpBu1XVC3mrF/DZvH68CdG i5sHdjJZ7Fk0CUjsPclicXnXHDaLGxOeMlp8XtrCbnH+73FWi98/5rA5cHlsXqHlsWlVJ5vH iRm/WTz6tqxi9Nh8utrj8yY5j01P3jIFsEdx2aSk5mSWpRbp2yVwZUz/uJSpoJWzYveL5WwN jLvZuxg5OSQETCT+LpzM0sXIxSEksIJRor1hLxOE84VRYsnUVYwQzmdGiaWNDYwwLZubV0NV LWeUeL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7S00DMysdQz NDaPtTIyVdK3s0lJzcksSy3St0vQy5j+cSlTQStnxe4Xy9kaGHezdzFyckgImEhsbl7NBGIL CSxllNjYaQ4Rl5C4vbCJEcIWlvhzrYuti5ELqOY5o8StmfuAGjg42AS0JBo7weaICKRKrPhz B6yGWWAZo8Th73eZQWqEBTwk5t/kAalhEVCVWHxgPdguXgFLiS2/vrFAzJeX2H/wLFg5s4Cm xPpd+hAlghInZz4BK2EGKmneOpt5AiP/LISqWUiqZiGpWsDIvIpRJLW0ODc9t9hQrzgxt7g0 L10vOT93EyMwdrYd+7l5B+O8Vx/1DjEycTAeYpTgYFYS4T3japUixJuSWFmVWpQfX1Sak1p8 iNEU6OqJzFKiyfnA6M0riTc0MzA1NDGzNDC1NDNWEuf1LOhIFBJITyxJzU5NLUgtgulj4uCU amA6xZo+bVvA7PDQKP/wzXMNUm32JpXob5CeIXNmH/NjR4vucyE7IixdLzNbTlFIn8DUrXra VshT63NYpJmq0vMk14ZvTqsd1+Sm6/m7vjmz9b3rDyb+vIzM1vm+Lx0vSVjvCtjP3PPOIGiq 3H93l7A3qe252v9VvsauyNv+UG/1jl93eC9rzA9f+3/RfTaLRW4flu5Rfz9n36cwp67ZS541 LRXj+Nn9bHWGelW5Yti74zwcLi8zMj98yT3bVllqYXGIUd9tWdE5xSmHmlSf8D4sm3U/apIC q6rR0Tozm6el1kz1ArenBT1s9UwIzZjaE3ODTeTWj59iWya/Y+zIPdwv/+XdqvjipfsW6P9n FFdiKc5INNRiLipOBAD5qwgAJgMAAA== X-CMS-MailID: 20230417123620eucas1p229311e1b4c661bd493509135ba748300 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230417123620eucas1p229311e1b4c661bd493509135ba748300 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230417123620eucas1p229311e1b4c661bd493509135ba748300 References: <CGME20230417123620eucas1p229311e1b4c661bd493509135ba748300@eucas1p2.samsung.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763427287656047844?= X-GMAIL-MSGID: =?utf-8?q?1763427287656047844?= |
Series |
convert create_page_buffers to folio_create_buffers
|
|
Message
Pankaj Raghav
April 17, 2023, 12:36 p.m. UTC
One of the first kernel panic we hit when we try to increase the block size > 4k is inside create_page_buffers()[1]. Even though buffer.c function do not support large folios (folios > PAGE_SIZE) at the moment, these changes are required when we want to remove that constraint. Willy had already mentioned that he wanted to convert create_page_buffers to folio_create_buffers but didn't get to it yet, so I decided to take a shot. No functional changes introduced. Changes since RFC[2]: - Renaming the helpers with folio_* - Calling folio_* helper version inside the *page* helper. [1] https://lore.kernel.org/all/ZBnGc4WbBOlnRUgd@casper.infradead.org/ [2]https://lore.kernel.org/lkml/20230414110821.21548-1-p.raghav@samsung.com/ Pankaj Raghav (4): fs/buffer: add folio_set_bh helper buffer: add folio_alloc_buffers() helper fs/buffer: add folio_create_empty_buffers helper fs/buffer: convert create_page_buffers to folio_create_buffers fs/buffer.c | 89 +++++++++++++++++++++++++------------ include/linux/buffer_head.h | 6 +++ 2 files changed, 66 insertions(+), 29 deletions(-)