Message ID | bfae590045c7fc37b7ccef10b9cec318012979fd.1736488799.git-series.apopple@nvidia.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 AE7F4E7719D for <linux-mm@archiver.kernel.org>; Fri, 10 Jan 2025 06:01:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2B7ED6B0083; Fri, 10 Jan 2025 01:01:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 28F796B0088; Fri, 10 Jan 2025 01:01:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1091C6B008A; Fri, 10 Jan 2025 01:01:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id CFF796B0083 for <linux-mm@kvack.org>; Fri, 10 Jan 2025 01:01:33 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 80D9AAF626 for <linux-mm@kvack.org>; Fri, 10 Jan 2025 06:01:28 +0000 (UTC) X-FDA: 82990495056.07.B516413 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2080.outbound.protection.outlook.com [40.107.102.80]) by imf28.hostedemail.com (Postfix) with ESMTP id C114AC0010 for <linux-mm@kvack.org>; Fri, 10 Jan 2025 06:01:25 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=mf3LZHqK; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf28.hostedemail.com: domain of apopple@nvidia.com designates 40.107.102.80 as permitted sender) smtp.mailfrom=apopple@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736488885; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=LbBcp8B+/Sn0jziT5hc2amOpZmSK5V3jlPqrQF2ZsC4=; b=0Su1kTMtpbFRCav/xROoANQHuwW+uhyFWrufnEMgcY7xidhJru/s0nEeDtmpWZASas+FhT r42PHjRqMeJr5L6gbtkfetCvkjjRsPG3XpQwDarHY5/IDWD2Mundv4ATo7Q+LLtNaOyCeQ +PdtuDFMKBo7vLOWuPd8pJlY3LRIJ5M= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736488885; a=rsa-sha256; cv=pass; b=EHWx0ILCReYO8WrQx7zFlOILbOXAFLopDd3gzl5kKisFoUCECN7/3Xbuv7SQ7md+bEs/X2 4NBaFrxowFwUJXXxY2N7v1Sceh1wSbCzP2W6w+wfLteQSEU+qyoxqeEtN7JTEeU2OSRa7q U5TfKKTTeWkmv0o1GVtesmgGWlophwE= ARC-Authentication-Results: i=2; imf28.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=mf3LZHqK; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf28.hostedemail.com: domain of apopple@nvidia.com designates 40.107.102.80 as permitted sender) smtp.mailfrom=apopple@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=U5GZBIzNet1G4cQFRU+Q54xBT5t5qrRgDTv5jA5pTLG3nya+VeqCpzi32GtMqwHaqzMjNu/y0QWwSvcJtcKgwmyj3a4fnUbijiANwCqqhWzGUHzvC8BpNpiKKysUC0hZo0ZT4Ym9P1hRuH3twz/WYnUbg+XBXOzBJ6JYJoVQJxKo3ODpwHlUxqVZE9vGdwMNJB2BdoOxsV50TC6wrdixQ269yH4IYSbpkzTm/tjvCsxiFRVt8+klO/J1aQvGo6OUkNyjqYkp1jtJlTURkBAXy9k2orscRnCGAsyKTT/IL6mFkO1/gXOKxNERvphpQNi163/BVmStsl6ICgNDvLHJjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LbBcp8B+/Sn0jziT5hc2amOpZmSK5V3jlPqrQF2ZsC4=; b=Ix+ieebpZGBChCvt0i49n+lUM4YRIcOZJCF5TSNbeYyEt0/7B0Oq+EPr4tdFbpjkTgaXxuA+7J+8jgsffcHIv19SC0xiBRDfdAd9olJGxBQDn4Av2dNZh+IBNcaIQVTuNkvHQWkkPEONsHdOJEttj5T7kmZ5lbEeH3mRJkM/TfVFdVflFwt0XIj9OjGEeQ6lkDdW7g3QLYrGMfdmVbgla9o/eFPCHzuMgJQbOujyxPmDwycJUYezZiIoFPbTPRqiYWiv0A+6A/P2Wqv5JAdA/JYq6k83UReoWCNTowAQ1VijtGwcgIgYsscv8ngNn2ZWbFKXfTrl+he8pRXPD9DXrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LbBcp8B+/Sn0jziT5hc2amOpZmSK5V3jlPqrQF2ZsC4=; b=mf3LZHqKIAUnFplAYMAuYYYfszMf2Uc3vP0gadUYGUhugrNWO4u0844JDCgyvNdu3x8pgkgO7K4PogfXqOYOk15R5ljKoVW0oaSitmgLdtS/MHkxVHMMsG/oGr5FeZ+eOWVyLh84N5b8N+cI9gR4K2gEnDRy1H2yimYTr7h22HVMTSplgCnh5gtcJda7HmAMW0dm/t0Uy4hPhQrbU0Jg4RXpBKiEo5WG054ryCQ8RMY8Yb1xHqwnXHlOTC7/hK5dp4Z6sFU6zRptkfyDTcutG2XnmPFrHHe7yjByiWDxBcQTmry6FFmhgcuGDvknp6HA4XRgmMDpOMpBZZw1OPzxUw== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by BY5PR12MB4132.namprd12.prod.outlook.com (2603:10b6:a03:209::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.10; Fri, 10 Jan 2025 06:01:23 +0000 Received: from DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe]) by DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe%7]) with mapi id 15.20.8335.011; Fri, 10 Jan 2025 06:01:23 +0000 From: Alistair Popple <apopple@nvidia.com> To: akpm@linux-foundation.org, dan.j.williams@intel.com, linux-mm@kvack.org Cc: alison.schofield@intel.com, Alistair Popple <apopple@nvidia.com>, lina@asahilina.net, zhang.lyra@gmail.com, gerald.schaefer@linux.ibm.com, vishal.l.verma@intel.com, dave.jiang@intel.com, logang@deltatee.com, bhelgaas@google.com, jack@suse.cz, jgg@ziepe.ca, catalin.marinas@arm.com, will@kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, dave.hansen@linux.intel.com, ira.weiny@intel.com, willy@infradead.org, djwong@kernel.org, tytso@mit.edu, linmiaohe@huawei.com, david@redhat.com, peterx@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, jhubbard@nvidia.com, hch@lst.de, david@fromorbit.com, chenhuacai@kernel.org, kernel@xen0n.name, loongarch@lists.linux.dev, Vivek Goyal <vgoyal@redhat.com> Subject: [PATCH v6 01/26] fuse: Fix dax truncate/punch_hole fault path Date: Fri, 10 Jan 2025 17:00:29 +1100 Message-ID: <bfae590045c7fc37b7ccef10b9cec318012979fd.1736488799.git-series.apopple@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <cover.11189864684e31260d1408779fac9db80122047b.1736488799.git-series.apopple@nvidia.com> References: <cover.11189864684e31260d1408779fac9db80122047b.1736488799.git-series.apopple@nvidia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SY6PR01CA0102.ausprd01.prod.outlook.com (2603:10c6:10:111::17) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|BY5PR12MB4132:EE_ X-MS-Office365-Filtering-Correlation-Id: 7415fded-2293-4465-edb8-08dd313c35ab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|366016; X-Microsoft-Antispam-Message-Info: iUiea6TcIoFaGltYHqp4MCOBxiDcafpaNHe3Va/E4WoJj2inejH6vzjtX+Odshioydj0ySbzw2THNGM6Buf6C4HaudO9wLKjFGqVU19NXoQkr5hs7/8AYFvdwULm9GNCK+KaqKZWhPT2zgpwm5xIyyEVxgL9sdPrqOwGUQ8xkcHGXj2qd5iE9Oreal2H4alhTMzWo0ZvrWDESqMwUxEYVStyXK2hbM+6LxwOBZcuH5xKPrVFfL6n8DWf/G5VJ2pOnzpOOsYsylGMnRLgeCol2ALKN8lB2LD/MI0KzELLvId9YD8G9mypE/2DrA/dfKMT5ORSo9Ie9ojxRRPuZpfud7Qd9LyuEthq+AI2u/ooNDYnSUexgyCtPpDnM8xe8GfY8jKX/nFl79dvWepJ5KOt8qc8IfX2vpHLfWlVN81DvodEZ8blgSYILgv+z6UtxxEUs1+veBlyT6CUrJE1dyD6ZNuVqcJNLbIr2Otei3fAwuYfN6jP8CmHOj9pcok48FSxJWfVcF3Ln9yVF4KjBq6xCBaQPmR5xWvJEPu+ehbalBJBLpxWV3doq9ZdsRnArfbQel42/+0ZoIDYqommf9fkHDpR8FQPU4/zCA8b7zRo3N98tuVcwLedOrBoEzZVw5K4r2KXOOLf9IzOaFnjnp4KlDaHdwmufiZesdEtWJJ6fLe7cZ1KWJCtoghVo9QTKVZx4yBWiue4FN8oO9yFJR01Nsz0GEVw7PtDaeLAEaXLTYpS0Lg2hZuKfUuKvJ6ZEAuTqYWdykZcuiEsccT5Wj8HDKuKq5ogqKA3U79V5S4uulqgpeWGI/SYzA3N3oqWbmB8+0klectqe4YIypwkXtkWcTEinyGA8IBwPeG6J1uo01V8NjxB6aQQ91szyuJjdhViC1SDmpM2ZdCKbwumfQEjoumejpTotawicXeiwnLY1ioHKqRwhnLC8NS4BFOHOViuU9p4E37PhFRQsbB5W3Rvm8amvBIufqYK29GnNfCqQR2P5miCDfWIajiLfFIunWmQekqLvnPXDRUjiEv7FhNdFPSp/2lUrHBkjljiWRt1DLTlDLWg+TXuYVrP89MGhRk/N47kjFsTIKxfF9Uj+zLpgqLQkSxwcsBtJE53Udw1FYpw95WF8xLLxfBFSrdLIN+al2IGgPDR0A9GRSe/5IBZibfKpNYO8skpvVdlsP6+eMLBKwBeV0EO1l55GwX8iXBbOHUiataVQ094e5JWhIi9t07Ni9figZ+FsWipZ8uaZaCLLvWziuQEL8/aeLB5b1Tu59nk3JZ2Jdu6nTwcUX+qoO6hnxIAJYk5aceJ7ILZ97cw6fZ/1N2NyX+MW+CngLIDoLF7R3+u0k0uZ0a+B1+IzYahQg9altLFJrAWBQEqc3QITago+C4aGBZG/RZgqh7M X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB7726.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: q3WholDKedmVRDQSIdDEqbsTSX+QtxlNOzU8klTKMUAoO8pcfltOLqWeBycuK86n69nSLq0Y+oaIy4tSYoO4opXy0nNhtwpycVXqJCzHL1XO6WuYfp9ODXmeoVuurBlx2A90d98TxlGWCkRNWTnW+ycSr0UYBdhRwnl7g1XQdQB2CQL3bvwvly4HNzRCSFasFMaWMMBPilYPTJFqNcyhum/MAvkehnhAAftxTk6QJCuE7CG3BRqc6/vsaVGeZtIZ/nyhdm4UOC61xjbkP52/XOopAsBfQSPI1WPXmWaDNSRB51jWrHzS6wljLHGtLGUgxgT6Gqm0c7SHG5YdCorgWdxcz6o4cND9X1clAIeYlAeXYWrgxBDITrWKvv/eLlwuaVSDfFLTum4j5pXJJnYrr1w2hPKvPiI76XAoCy7JjCbIqYAhNsp3y8Ov8rcpNDx0QnffAlI6jkii04PcJblgmDO/hyEZnf8X9fURHtsYR3XexbCynYVGfcYYA/jBw6IxvO+lNaMzwmkcPlPL//nTBMnDM8fjvDJOQUPhBScVurKsa0xZmXjOueeiaxWPVnBbb4UII6H161mhX5zXPzYBRi3shCJw/IssRLg9SP1tOmBs1Ub+hSA7IJksaXZj2Je8S35WkTQvgXP17OeTPbchAffrUBEB6SRz65aO7vdRJh+uQA0aHTzHVG4REVDxzNBO9fPZTsZUIi7TQAlH0LV8+6BDlfmI04adpTBHVFH9NJu7voSz/TWgg9GzmN9e+SjzEq5s1wi4uzfCBJvEAlRn2BrgQ45EFTPhVv4bIkr2S2gGBiYerkW0UNBxVM0zfbXPuuaSjV8zSaAhNUf7W+9lzam1bK+MODQQzFTT+UiMSjYzARzFiaX1mFRwj+6NMsIRB7+D1wGLlWoyr7Gewr1oHm2dA9c/duqPTe4Xm1IToMfd+2BfpQH2QTTPiK0VatU3Dwip/reM2T83BpfKQDrJD8gscDtTOGEX0msymHD1N2CeMXCLjV/8iPskUMl/JUAptQRJxJquwUUb773SNnGRW4+kEGXqwMiPiRXJVeleWMODA2W7umMN6EJQvVpglYfQTvW5uGNk9JApiS3RbIA/l7ZZmXlCs8REcspHQ0y6PellaXFH1tkimPm6EYmN9UoNH8ogH3vVfpQUuNl39J1gY+ZBDKRl8Q+6zuLr7tbZZFnqmsT48QhZh+ZcNCGZMqp+FYrPQcWMKeMFncdiIvFjOj4nlZwDhVg3IDvFitbluFavQMgcYoDfOAm8LhsO+c+6/AjqAtoW/TPx8rld0wiV88WFiaprEDUMBjz6YoGwHxrxza0+c4pmttmw7kqObyFzWaiZ9jKcmUs0D8xXPeo4lb/cWYw1LZeIqu7ZditXXGLcjhtZvYhyRzsuMIWjXcp5EPWf5a3WSZPE1aN+CtqqHy+q00MU7h7qmDWuDu3ZuHCtC3VF1hjVbke1OitAv9m/xG7XKUFTuldkaRInZEI7YvqOKhDiziRnd1rtz100clKwX+crn8vl1FMzM7nlCQJ0BRanuAqvf/DVWQCzU0aqvlzO1D/dG2hNVUkf2k0aG2uvA8BA2qjXlJe4AgiN7Fxl X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7415fded-2293-4465-edb8-08dd313c35ab X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7726.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 06:01:22.7610 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: htroSdF/dxS3nzKIpqIjntV3q4KRTiTTAbDZsGM2Eik3FUjh4pHnShiH+zMQv3HN3QbULE+UgyXuEwMBIg5CQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4132 X-Stat-Signature: iajjpbb9jtw5t68j7wo91ymbigrmqha6 X-Rspamd-Queue-Id: C114AC0010 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1736488885-536305 X-HE-Meta: U2FsdGVkX1+yvVXh5VA4LbQQtJ0ubdFm2HzFZgLVPYMY2f2CfV7xhx5gCPnCQlyCsoZKrmshnGIOpHeQWEatpt6jQs+Dgc+Pq3V6dLI2okGaXZiStGFUPdzbZ7+AJsMIp2PWzoWeQwTlq9sdl4pR63aBuKeDTay77haQXltyhTySAg2og6+qIHc5SUvCKQ1uK1X/auDZ4jRUtRQW1XoHuxdvZ2tG3twR8ES6ABzSgo+UtPce/sYEF6mRJk+xxnLV0+20x1Ve7gYepFOWuX4iw/Msdb5ehwgPaZu6I8Prc0UkTUpAqMPeASj4vrEbqejndqXCx4dPts7anPXPneFjhvvbo4sskugcubqDxBMvJnEow1jdgMVyNQ5CD2HJLzowogMdJLCK3lwCKCJfk3zFnayFsi0WIdya5Bx9HOMa6qVC/yQwe1fsSqZxYFjTi2QEeJwc0TT9EfxgUk0pLADOH6gVO7nq2FcBhl7Pqa4nlK1E8DSL/lNAKFogKuJca9BULbX+1Vp+0xjTYOrzwEPrJTHrnMfzlhDIAhQTI9QryuFhcHexbBoWJMGhljIZw0GeI39/0MLdW6j9bDRShEbEIQoH2miWsu3OyGhke95yPx26RJ7GCBYgvdGJGsqqCtW7DL0R/xNTBy4dqgi4I46J5KojsoaGLuxcZamPFFnlsvwD20d8BrLsR/Etqk+c2vt/JbAo1yh/wRv0z4w2BvvdT8EtroQzyR+pIVqnTGoAMZhsRd8Tv6hSzG458xxbBB/piu647sHlcxtFDGXFkknvEZeBwkNmzy7MrIYeJ5HWdX0Vzx3fSHYAaBO8N+OOfsSO7XMP6OeXwKYRne1jBQf5qTPvSw0wRrI17a4eI5K/O4Y2JAGtZa/IKGhthmExQVR1fexjz0611CPWSPLSf/cp0LvRwbPSPJq5AwnKv3lNeHlPa/jypB8h1P6vEL9qBIhQDmzSIlq45uUO5obQL2t EFMDw9Oz qTEcXBwyAsWbv0I/QUvxKy/HJPiQArlmWZK4ZtpKPQjcT3w1gRhbu3y4tdlCqd6jD3k+704/iMM+spqmdiOKq1dVKKg41EZG4dPZujaeJSB03TAIqYvn6Iriuf6Mu+l67d5ou2nKEUfEKohQQ7Pdsp6+m4Ad+or2DvC05wGh8yQqqYRqS8mTVTrrYxvJDRlQ9KHUpKbWqmlXEUuBsdcvXwMqacSzP3bjSa3lXw+iDzEN5rPzGhZ9K2DelTCNn8QlYKF1ouAH50IB0hCAQPXnDzPPPraf8yM/driM5MId5kn2EvCvgKshJ8+RuhIcwVdd2jwXkv9PCFBg9G3/ElUu8mklusv3Mk7sXriBWY4Y08pqDOOqcPvyLBCtlW178DbiEUJaXzeLTiCRVesb8mXkBAL859mkZ5mrPX64Vlt1nMVnKrSvnJGbFEZRQQQbkPfbsXI1aPvQW2h5mbGjevbUqbAv5AR6Frxps9PRlNU8Tp8MFuE4LENOh7DkTLollb1Zrfq6K 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
fs/dax: Fix ZONE_DEVICE page reference counts
|
expand
|
diff --git a/fs/fuse/dax.c b/fs/fuse/dax.c index 9abbc2f..455c4a1 100644 --- a/fs/fuse/dax.c +++ b/fs/fuse/dax.c @@ -681,7 +681,6 @@ static int __fuse_dax_break_layouts(struct inode *inode, bool *retry, 0, 0, fuse_wait_dax_page(inode)); } -/* dmap_end == 0 leads to unmapping of whole file */ int fuse_dax_break_layouts(struct inode *inode, u64 dmap_start, u64 dmap_end) { diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 0b2f856..bc6c893 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -1936,7 +1936,7 @@ int fuse_do_setattr(struct mnt_idmap *idmap, struct dentry *dentry, if (FUSE_IS_DAX(inode) && is_truncate) { filemap_invalidate_lock(mapping); fault_blocked = true; - err = fuse_dax_break_layouts(inode, 0, 0); + err = fuse_dax_break_layouts(inode, 0, -1); if (err) { filemap_invalidate_unlock(mapping); return err; diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 082ee37..cef7a8f 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -253,7 +253,7 @@ static int fuse_open(struct inode *inode, struct file *file) if (dax_truncate) { filemap_invalidate_lock(inode->i_mapping); - err = fuse_dax_break_layouts(inode, 0, 0); + err = fuse_dax_break_layouts(inode, 0, -1); if (err) goto out_inode_unlock; } @@ -2890,7 +2890,7 @@ static long fuse_file_fallocate(struct file *file, int mode, loff_t offset, inode_lock(inode); if (block_faults) { filemap_invalidate_lock(inode->i_mapping); - err = fuse_dax_break_layouts(inode, 0, 0); + err = fuse_dax_break_layouts(inode, 0, -1); if (err) goto out; }