From patchwork Sun Apr 26 21:49:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guoqing Jiang X-Patchwork-Id: 11511021 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A7CC1667 for ; Sun, 26 Apr 2020 21:50:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31E4B20700 for ; Sun, 26 Apr 2020 21:50:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cloud.ionos.com header.i=@cloud.ionos.com header.b="UVHO4nSP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726458AbgDZVuD (ORCPT ); Sun, 26 Apr 2020 17:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbgDZVt6 (ORCPT ); Sun, 26 Apr 2020 17:49:58 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D5B7C061A41 for ; Sun, 26 Apr 2020 14:49:57 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id a2so12493921ejx.5 for ; Sun, 26 Apr 2020 14:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=N8gIKFIeQ8z9XfDXF8aFsZf0JuueUHPpH6m+yfXK8b8=; b=UVHO4nSPWFPUha6gMtRlBXjUrSChfrVkXAZEtZZU15RWikI+an77gAQsrAsj2TRuKY f8LhPsVlGMxZNx4YrPwaJ6tHcz//7ndRkxJqOqrnmstPz15M7dqlJlk8gd2Lq3TYW1Ec osx4eOIGOKy4DTfNKVG+bVsa6lhQm9tjU/Gny9MW7P6wTFRiU7mxiO8g/fojnB1+05DN MhOmuakavYZSMaYyJ84Nvp+ib+10DhtEG+cWtDFZQTdpQnxmXGiYr6Iv3irIuInrPx9u eALbJkHQnCwuxGwMiSlcCw5iMndeGJXPdQJCKiFTEtH4GozkC0fGF8zwGvRlvf/2resF /39A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=N8gIKFIeQ8z9XfDXF8aFsZf0JuueUHPpH6m+yfXK8b8=; b=QWCCKUcIzJJCP0IGfK09GxS1xds2eTAkSwVYmF3f8nQGboY1FB+08qloPg30y1McSu hw0sIJYhd7MN8QanYGtwUq4Ie3qxTclhARhIUxLt84wbPmrjbTMo1yAANlniAIiJKe9M nllyxvVbefqxU5pMC0jhncFUe/mwg+keEDlCZK8Uf4UYoKpic8M0osbyuK98HpiMxzgi qzIx9UQaGxMscze5DYkyJipiVTp6XnFrqBkHp6jiVPfnE2eY9yAysZos+a2PnoNuEw7S cGOF2er25ie9LpclZsKQp84DYruXv0jZAzefiPQ4KT8SFGBpX5cZjr9WPXTP6oUYaARM DWkQ== X-Gm-Message-State: AGi0PuZFjJ11mO8WicpXMBTR/sluhaxs9208Fcdn7uqZMHnGxRgjN21I 8I3e5hbXPIMIYNXVn2G8lEPKwbiTGAtZKyc5 X-Google-Smtp-Source: APiQypJ000Dnx98h+ZTnqQQF4cE5/V9vJpP0CmGnXbwOYfUf6hYD0XVxm08loMwo7oxpYoNuTMUnjA== X-Received: by 2002:a17:906:9450:: with SMTP id z16mr16426992ejx.166.1587937795586; Sun, 26 Apr 2020 14:49:55 -0700 (PDT) Received: from ls00508.pb.local ([2001:1438:4010:2540:fab1:56ff:feab:56b1]) by smtp.gmail.com with ESMTPSA id ce18sm2270108ejb.61.2020.04.26.14.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2020 14:49:55 -0700 (PDT) From: Guoqing Jiang To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: hch@infradead.org, david@fromorbit.com, willy@infradead.org, Guoqing Jiang , Thomas Gleixner , Sebastian Andrzej Siewior , Roman Gushchin , Andreas Dilger Subject: [RFC PATCH 9/9] buffer_head.h: remove attach_page_buffers Date: Sun, 26 Apr 2020 23:49:25 +0200 Message-Id: <20200426214925.10970-10-guoqing.jiang@cloud.ionos.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200426214925.10970-1-guoqing.jiang@cloud.ionos.com> References: <20200426214925.10970-1-guoqing.jiang@cloud.ionos.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org All the callers have replaced attach_page_buffers with the new function set_fs_page_private, so remove it. Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Roman Gushchin Cc: Andreas Dilger Signed-off-by: Guoqing Jiang --- include/linux/buffer_head.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 15b765a181b8..22fb11e2d2e0 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h @@ -272,14 +272,6 @@ void buffer_init(void); * inline definitions */ -static inline void attach_page_buffers(struct page *page, - struct buffer_head *head) -{ - get_page(page); - SetPagePrivate(page); - set_page_private(page, (unsigned long)head); -} - static inline void get_bh(struct buffer_head *bh) { atomic_inc(&bh->b_count);