Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2238238ybk; Sun, 17 May 2020 14:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLonDnUnGtzfSY+Fsgx1AGMJdBIIBES3HqU6GY0ld69S7aXzfbRikgT6Xv8XpEzdUIhCeV X-Received: by 2002:a50:a985:: with SMTP id n5mr11214224edc.338.1589752283874; Sun, 17 May 2020 14:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589752283; cv=none; d=google.com; s=arc-20160816; b=kpnDYzJAFcXCmniyZE54P00I6EW2NXM9IiAXhGje10WgzZ+16fhqiS/5uxgcEMfXlp wkZIlmJgCzOtcIiPa1O4XGoPqEZ0q1ow+yCpE7Eg9uA4b8rXSEWBSV2pHpF6swwbMYBd 8tyV5vRijFqsFF1Oc4ReJgl+qo35QQwv7+eBdm7toNWZumUR56C2rFInWDhi5TVCxmYT 0nbgznlDKDT9AmG21dXf20TZbxt5gvw68US4LUpLyYm1EIX9B1V5Q0l0/ys4do6fU+T2 /5bUmML8Dv46vO8FjLlmcWlcwELxLptxssrepf/ZXNqFdhT805apPnPUcV3IcSsGbgOB vctw== 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=/66Q+jWEKaVzaANJQrJ1aosdAcx3vTMrVmbrCAkWcIc=; b=T+S3dmyqdlliWzkQumZ4GjIH23qmWqu5z1v8dfViNnm7ZBU6oyTS/xj9fwrwQSJXYq +4NnWAFoQB9FNNEAKMThr/SNgH45B1axndOWHWZjylm5yPunB2upZzlEt+AfLHoqIag4 xi6l0poy4stxnsorxDEUu4kPdyKDKzqTwbleSVzS0oOn9DJVXaJAYUYVqm9u8nPt8Pqp KCIkJwSJY7tTqrw3jS+sadtpqc4WHRxdsnOE0YlLBpa9i4Tt+IvwJXiYfvq0A125af62 2F8DO8psMkfrZpHNfYwdA+rjw83gcFHlaxOHAZGp92xf4dM6UIoO3YE5wSp0RHYQYEf6 Y33w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=Nh6nIwgM; 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 jz18si5338607ejb.112.2020.05.17.14.51.01; Sun, 17 May 2020 14:51:23 -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=Nh6nIwgM; 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 S1726607AbgEQVrZ (ORCPT + 99 others); Sun, 17 May 2020 17:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726297AbgEQVrZ (ORCPT ); Sun, 17 May 2020 17:47:25 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8087C061A0C for ; Sun, 17 May 2020 14:47:23 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id h4so7387216wmb.4 for ; Sun, 17 May 2020 14:47:23 -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=/66Q+jWEKaVzaANJQrJ1aosdAcx3vTMrVmbrCAkWcIc=; b=Nh6nIwgMiHyOKSXIXrkxyg6h4r1BqAxzS0PC879X4g/NMz8yKEN9eFrgTPhobK9Loq nXrMwJkULWxg1iAgX82GF93KXlbTnVoD8ZW2Y98BizMccCYQVJV74xIAuYzdZyDKPn4j JyYKbcRA2raiYPw8yKhOG0kl1SgH7bOS40sx63sRVeR9Tu3Flyb5UPlAhULtks5znzTZ x2nxtuSYCcgdC+BekliM+Od5t3tDIcirXncgRwc4GNz+BHxJhpzPe5GP7riVXyzNcxyE kipQHsJiWZjyAxbN/21K9VieDYSsRbz8XUu4Tq/OrVy7c3p7sN43pV10w5JCvgpjwb0Z Tv0Q== 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=/66Q+jWEKaVzaANJQrJ1aosdAcx3vTMrVmbrCAkWcIc=; b=dvitJRXUoJFLabIz2ZsAS/zE+1zzhpOAiJbQGe5YhzPFIdqlg9asn7PUE3T4dZj7N4 L53LfmDTUGGiCBJHFwGNdnpMc1zi/rlt0m1fEtQlHGpQZ7MsanMGXIOhIQpxBoWvGZNA UiklmhZzQSPNhoQNHV0hoyCgYQVe3zpHslUKEGokA20AMpoSWcVgqykQQFYHK5Zmkdd0 NMkvwdiGPWbrJmtaQpXVl2D9NO2ddbDcSRA7WYeKs9inhvOSDxcLHzqMdLSUpQApVHK6 XACKGcERXIYQudNmEhF/TxPPsxWVCGYN/GoDZ8HwhT+lYO0kfHucZmze1FtKZ3Ji7tuN UWyg== X-Gm-Message-State: AOAM532+YH3zsgaTWpdmItL2RRnw+xRUXnZW7gN/z1QzSMeAoNrdUbb7 IdFvwlBv+qZ2E3F5I2BjEoKuRg== X-Received: by 2002:a05:600c:2219:: with SMTP id z25mr15529781wml.128.1589752042279; Sun, 17 May 2020 14:47:22 -0700 (PDT) Received: from ls00508.pb.local ([2001:1438:4010:2540:bc3e:92a1:7010:2763]) by smtp.gmail.com with ESMTPSA id v126sm14441244wmb.4.2020.05.17.14.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 14:47:21 -0700 (PDT) From: Guoqing Jiang To: akpm@linux-foundation.org, viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, david@fromorbit.com, hch@infradead.org, willy@infradead.org, Guoqing Jiang Subject: [PATCH 00/10] Introduce attach/detach_page_private to cleanup code Date: Sun, 17 May 2020 23:47:08 +0200 Message-Id: <20200517214718.468-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 Hell Andrew and Al, Since no more feedback from RFC V3, I suppose the series could be ready for merge. And Song has already acked the md patch, then all the rest patches are for fs and mm. So, if no further comments for the patchset, could you consider to queue them from either of your tree to avoid potential build issue? Thank you! RFC V3: https://lore.kernel.org/lkml/20200507214400.15785-1-guoqing.jiang@cloud.ionos.com/ RFC V3: https://lore.kernel.org/lkml/20200430214450.10662-1-guoqing.jiang@cloud.ionos.com/ RFC: https://lore.kernel.org/lkml/20200426214925.10970-1-guoqing.jiang@cloud.ionos.com/ Thanks, Guoqing No change since RFC V3. RFC V2 -> RFC V3: 1. rename clear_page_private to detach_page_private. 2. Update the comments for attach/detach_page_private from Mattew. 3. add one patch to call new function in mm/migrate.c as suggested by Mattew, but use the conservative way to keep the orginal semantics [2]. RFC -> RFC V2: 1. rename the new functions and add comments for them. 2. change the return type of attach_page_private. 3. call attach_page_private(newpage, clear_page_private(page)) to cleanup code further. 4. avoid potential use-after-free in orangefs. [1]. https://lore.kernel.org/linux-fsdevel/20200420221424.GH5820@bombadil.infradead.org/ [2]. https://lore.kernel.org/lkml/e4d5ddc0-877f-6499-f697-2b7c0ddbf386@cloud.ionos.com/ Guoqing Jiang (10): include/linux/pagemap.h: introduce attach/detach_page_private md: remove __clear_page_buffers and use attach/detach_page_private btrfs: use attach/detach_page_private fs/buffer.c: use attach/detach_page_private f2fs: use attach/detach_page_private iomap: use attach/detach_page_private ntfs: replace attach_page_buffers with attach_page_private orangefs: use attach/detach_page_private buffer_head.h: remove attach_page_buffers mm/migrate.c: call detach_page_private to cleanup code drivers/md/md-bitmap.c | 12 ++---------- fs/btrfs/disk-io.c | 4 +--- fs/btrfs/extent_io.c | 21 ++++++--------------- fs/btrfs/inode.c | 23 +++++------------------ fs/buffer.c | 16 ++++------------ fs/f2fs/f2fs.h | 11 ++--------- fs/iomap/buffered-io.c | 19 ++++--------------- fs/ntfs/aops.c | 2 +- fs/ntfs/mft.c | 2 +- fs/orangefs/inode.c | 32 ++++++-------------------------- include/linux/buffer_head.h | 8 -------- include/linux/pagemap.h | 37 +++++++++++++++++++++++++++++++++++++ mm/migrate.c | 5 +---- 13 files changed, 70 insertions(+), 122 deletions(-) -- 2.17.1