Message ID | 20221115013043.360610-2-david@fromorbit.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84222C4167D for <linux-mm@archiver.kernel.org>; Tue, 15 Nov 2022 01:30:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D58758E0001; Mon, 14 Nov 2022 20:30:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BD53D6B0074; Mon, 14 Nov 2022 20:30:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A51528E0003; Mon, 14 Nov 2022 20:30:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8111F6B0073 for <linux-mm@kvack.org>; Mon, 14 Nov 2022 20:30:50 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 52DF680F08 for <linux-mm@kvack.org>; Tue, 15 Nov 2022 01:30:50 +0000 (UTC) X-FDA: 80133947460.30.8F13033 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by imf20.hostedemail.com (Postfix) with ESMTP id 03A331C0006 for <linux-mm@kvack.org>; Tue, 15 Nov 2022 01:30:49 +0000 (UTC) Received: by mail-pl1-f170.google.com with SMTP id p12so11769290plq.4 for <linux-mm@kvack.org>; Mon, 14 Nov 2022 17:30:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RAlz7tqq0QNaEwK87s1iuzIYezDUz9kvZQYKXkSLXDo=; b=sd9UI1HlQaNvLFt5yYvNRsOv7VflJP4IAUrhnHE7flexeeuoQ5hP8TKmCc+BaiIfMP ZiRGlgPAXhmbHSKa7yVy2L3lIOlPynkkJEHtQmdc7TRdfpUE6pywh2aPcPiv4GoVLz0Q zd0iww4tAvO4mJl3M8G/RaiY6Ava/FpH3GuKDApgHTJPoSxt/5F8/qZBvVpNgq1A8Prs fHl1IL0/KmUzftODKT8X6Jm4m4ecva0wyKgRR8mwwBU4D5J7BY/i/6NoDYqBkj3VD1qD r5la6S0xsiSZSjAQpJVXSlemhOX2B55pAvdhXhpwAkHkFieaYn2mwZYDwfepK+WLZrd3 Y0HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RAlz7tqq0QNaEwK87s1iuzIYezDUz9kvZQYKXkSLXDo=; b=ab7SsORucc+6uoD2s7jHHP0nNczMlTpwVSNKKBMGldVs35rAbuLj6F+7iAOEv2b9K/ B0ugjcqFK+9ooCEXM43D1qjMk5HTAmIvKTc1pwZDvpvcOkbgHXXKS2yVJT7L6oKP3psk DXkngU2lx7vyLO6EkEawFztxm/wjmEyGecBdFDhDOk1+b9HbESLOXB11vufhjbl1RnIu ZlDjAWpdgO4/k/TTjjNriSScL1BU3HZFMyJxTUwEjLN5FOk+VsgK34xiV0RVUKGQl3lo xO0h0QMsDkac8G9MOrR6u0nrpQPSC+u/fFUrYa3RQL3O0jHHc65U6f8FOoB7S3eFpvh/ j/1w== X-Gm-Message-State: ANoB5pllREt3A4vahPcFD+5K1AY9ubO42Ipu0KZw1jmOdjwxZ26e8l9U ZVMzAmT6Wj3jCB5+qojYhAa9tA== X-Google-Smtp-Source: AA0mqf7VUafnzdFgsn+0nyI7dq9zs5JPeB8q0hRVxivQdDOKjWJ/q10BkeaEXZRzwUNmnCwRvxAnNQ== X-Received: by 2002:a17:90b:4b4b:b0:213:2262:e3f8 with SMTP id mi11-20020a17090b4b4b00b002132262e3f8mr16127935pjb.82.1668475849114; Mon, 14 Nov 2022 17:30:49 -0800 (PST) Received: from dread.disaster.area (pa49-181-106-210.pa.nsw.optusnet.com.au. [49.181.106.210]) by smtp.gmail.com with ESMTPSA id w3-20020a626203000000b0056bc31f4f9fsm7390484pfb.65.2022.11.14.17.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 17:30:47 -0800 (PST) Received: from discord.disaster.area ([192.168.253.110]) by dread.disaster.area with esmtp (Exim 4.92.3) (envelope-from <david@fromorbit.com>) id 1oukmj-00EKFu-9H; Tue, 15 Nov 2022 12:30:45 +1100 Received: from dave by discord.disaster.area with local (Exim 4.96) (envelope-from <david@fromorbit.com>) id 1oukmj-001VpE-0o; Tue, 15 Nov 2022 12:30:45 +1100 From: Dave Chinner <david@fromorbit.com> To: linux-xfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/9] mm: export mapping_seek_hole_data() Date: Tue, 15 Nov 2022 12:30:35 +1100 Message-Id: <20221115013043.360610-2-david@fromorbit.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221115013043.360610-1-david@fromorbit.com> References: <20221115013043.360610-1-david@fromorbit.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1668475850; a=rsa-sha256; cv=none; b=y82avkLni9EOZ8g3+mni2efHMXjl/bU25sNbzBPWBAkFKSglXquIrlwYTMtUYog4MmJsiB KMvL/JSOzHycGOtIy8j4VDk6bU22YITjWCd1m1h7++tRUAGChtIdcXvQccUWxMZo3/nx68 PbXRRrzN67eCOtYkO2eQYKLgVbXtKn0= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=fromorbit-com.20210112.gappssmtp.com header.s=20210112 header.b=sd9UI1Hl; dmarc=none; spf=none (imf20.hostedemail.com: domain of david@fromorbit.com has no SPF policy when checking 209.85.214.170) smtp.mailfrom=david@fromorbit.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1668475850; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=RAlz7tqq0QNaEwK87s1iuzIYezDUz9kvZQYKXkSLXDo=; b=kQuiHTF/NpWzK1MRA/6gWZcdFInJXUYjUg2hoEynJWp1cJcOBWZpXqdYJEyuFPtcad7kHF 1Y6J8sWIbzXiJxLtQj278iQGJ5F/D7OiXUUiUZI4zDxn8Z9c2uYfkH3XF5aZEArbTv0HQi b4FZYRmFQeSqH3EtmhwAAO/v/ZDQeZ8= X-Rspam-User: Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=fromorbit-com.20210112.gappssmtp.com header.s=20210112 header.b=sd9UI1Hl; dmarc=none; spf=none (imf20.hostedemail.com: domain of david@fromorbit.com has no SPF policy when checking 209.85.214.170) smtp.mailfrom=david@fromorbit.com X-Rspamd-Server: rspam02 X-Stat-Signature: fphki1oep6dc5jbnh13squrf6g8iwypo X-Rspamd-Queue-Id: 03A331C0006 X-HE-Tag: 1668475849-950708 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
xfs, iomap: fix data corrupton due to stale cached iomaps
|
expand
|
On Tue, Nov 15, 2022 at 12:30:35PM +1100, Dave Chinner wrote: > From: Dave Chinner <dchinner@redhat.com> > > XFS needs this for finding cached dirty data regions when cleaning > up short writes, so it needs to be exported as XFS can be built as a > module. NAK. Even if you use these helpers to make your life a little easier, the main delalloc punch logic belongs into iomap and not XFS, and does not need the exports.
diff --git a/mm/filemap.c b/mm/filemap.c index 08341616ae7a..07d255c41c43 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2925,6 +2925,7 @@ loff_t mapping_seek_hole_data(struct address_space *mapping, loff_t start, return end; return start; } +EXPORT_SYMBOL_GPL(mapping_seek_hole_data); #ifdef CONFIG_MMU #define MMAP_LOTSAMISS (100)