Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2260484ybz; Sun, 26 Apr 2020 14:53:37 -0700 (PDT) X-Google-Smtp-Source: APiQypLWFJtoMn16uds7PkpY5TEh01dU/YsPV3TZz0XwyGR4R84uXrGDfsmY7JvxaZ6auojHqX8K X-Received: by 2002:a05:6402:1768:: with SMTP id da8mr16507611edb.216.1587938017272; Sun, 26 Apr 2020 14:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587938017; cv=none; d=google.com; s=arc-20160816; b=O9LxCXHuh65Zn+UwjZQ71k7yD82Zod6EHksbUfvU9p0K8NriWBuPcSZuo+SBFQa24Q aA0nPtvWOgkcR9jYn2DMMUSInrtix/H2HNsYQsvuz0ukKdHZ4IOBvc7Q036tV/+Z1oUd H3Hh5xGif+CMEuSPhPRAEYWbDomlSWx2dsT4fvn+lorfrqK1o42e79NYoMwuQEhmgbZo jDErpiP5195AfTPovB99jRwRYq9SLXNIM/JUN0yhW7aDga5DvoF1xIhjse0JjcLfT+L5 gePN9cvOEpnKpcEIEojRqaC/jMzWJEdO1eXTkX0Tvg/kspoVG5R75PP+ZaGDG/aMLvSD YzNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=B/ch82HyLL2sQr6H4MnBtI01Q2APZPEwf2QyxgsQ6bE=; b=nbp3En+yeM73gJVhEMM27X7xpmZ5y9QS2Hn5Xo96l2mLH3PzQUsgxitEzNTamkdC8R cg4LHPnZMA+NlDg71M9vKJg/PM7x4ZyrMetMc7l669sy/6FKz/NYK1zY+b5GAo1qlhDY FDl4WfJ+5FVTubd4S3/UgAtzMNOBCtQnpWwMxZSWzsBmhOKlZGCzpU8P5HeyVYxbtGqJ qvLb2W7kmiThY2OLeKn5mXdLqImaGpdWhy0ygNDq/FMFL45R9FeVLrGO3aUoW92rKY6h FMzTSDpeXGJSVNxM1Ejt7++MPc6BrRUPOvL8YUxrOoCilBPjGxMB289SmMW08gYgsOZE 5Mjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=C6afFiFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv13si7413150ejb.115.2020.04.26.14.53.14; Sun, 26 Apr 2020 14:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=C6afFiFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726296AbgDZVtv (ORCPT + 99 others); Sun, 26 Apr 2020 17:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbgDZVtt (ORCPT ); Sun, 26 Apr 2020 17:49:49 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB714C061A0F for ; Sun, 26 Apr 2020 14:49:47 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id q8so12479874eja.2 for ; Sun, 26 Apr 2020 14:49:47 -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; bh=B/ch82HyLL2sQr6H4MnBtI01Q2APZPEwf2QyxgsQ6bE=; b=C6afFiFVw7S0hp7bZfWbrthZh1ZM4P0cPOjHJRBn6u9FP10tTEn/l9PF9XDRdD8hMo FUIrdIh1+RRAC9QGXGHot7NgMt2xGErdp+XECWu7Xzb0EX5KTbKhvF+L50f4kDwIb9So 4wNDrn75HXesak3RnaipqHpOlJiRhdKeiuEqu3ZpU9WCEMyT6/rejd6XdAW+L4S9lcXw YxiK82m+la85q5kQVx+hB6+Da8ZUJgkGasRb1JGDV0i+peuqRo9nQMmkU6z3k1pEH1Yp Hw1UA6NpC8Zl8bIXKZaA8x4GfNQ5f/48jy6FByERebcqavePWSRXbVzCkG8ENpvyi7CA 9GjQ== 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; bh=B/ch82HyLL2sQr6H4MnBtI01Q2APZPEwf2QyxgsQ6bE=; b=TNhXLf2gFNMRNdaEn33XbyNS9Q+ZB2qjsrtaX9aHaM5P12ZD0/TbvMh/ZYJ0msYk0u fm215WRw4mfksa3AxPZMnjgJmGIA6kMW8YzWntb6b1/bkKvDOzj1DnPRQ//Ys3YU0BBR MLoWctgvAkIokr/jwt4vcgRBPhxd+CIjgYRRp1ESJ5VHBOmHCQV4ELzPEjJBuG5FRprh VTFb2zPJDHZ6CBAcKqDmitA/CDL3FeHUfhImQ9kS88LSDNchWoouRwRhqrcjPyPCDMqB swAXZ2H6ZHoTCgwfy1RuO066//sKevtZbAxg6JNU6llnAz4+M2t1VvX2YtK1KYnjdtLr jaxQ== X-Gm-Message-State: AGi0Pua0Yf0Q27FR1ykf72UKBl+eNI6mJlrS53yGZoGYEcBEkRGaBvCR rJw2FlP3kWP0bfSE1P29kHrLnA== X-Received: by 2002:a17:906:74c:: with SMTP id z12mr17510376ejb.87.1587937786516; Sun, 26 Apr 2020 14:49:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2020 14:49:45 -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 Subject: [RFC PATCH 0/9] Introduce set/clear_fs_page_private to cleanup code Date: Sun, 26 Apr 2020 23:49:16 +0200 Message-Id: <20200426214925.10970-1-guoqing.jiang@cloud.ionos.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Based on the previous thread [1], this patchset introduces set_fs_page_private and clear_fs_page_private to replace attach_page_buffers and __clear_page_buffers. Thanks a lot for the constructive suggestion from Matthew and Dave. And sorry for cross post to different lists since it modifies different subsystems. [1]. https://lore.kernel.org/linux-fsdevel/20200420221424.GH5820@bombadil.infradead.org/ Thanks, Guoqing Guoqing Jiang (9): include/linux/pagemap.h: introduce set/clear_fs_page_private md: remove __clear_page_buffers and use set/clear_fs_page_private btrfs: use set/clear_fs_page_private fs/buffer.c: use set/clear_fs_page_private f2fs: use set/clear_fs_page_private iomap: use set/clear_fs_page_private ntfs: replace attach_page_buffers with set_fs_page_private orangefs: use set/clear_fs_page_private buffer_head.h: remove attach_page_buffers drivers/md/md-bitmap.c | 12 ++---------- fs/btrfs/disk-io.c | 4 +--- fs/btrfs/extent_io.c | 21 ++++++--------------- fs/btrfs/inode.c | 17 ++++------------- fs/buffer.c | 16 ++++------------ fs/f2fs/f2fs.h | 11 ++--------- fs/iomap/buffered-io.c | 14 +++----------- fs/ntfs/aops.c | 2 +- fs/ntfs/mft.c | 2 +- fs/orangefs/inode.c | 24 ++++++------------------ include/linux/buffer_head.h | 8 -------- include/linux/pagemap.h | 22 ++++++++++++++++++++++ 12 files changed, 52 insertions(+), 101 deletions(-) -- 2.17.1