From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 8E729C47DDF for ; Fri, 26 Jan 2024 14:15:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 00C956B0081; Fri, 26 Jan 2024 09:15:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EFEC06B0082; Fri, 26 Jan 2024 09:15:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DC65E6B0083; Fri, 26 Jan 2024 09:15:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CDDC86B0081 for ; Fri, 26 Jan 2024 09:15:51 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 6FF16A2592 for ; Fri, 26 Jan 2024 14:15:51 +0000 (UTC) X-FDA: 81721660902.28.A0C5DFE Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf20.hostedemail.com (Postfix) with ESMTP id 6658D1C001C for ; Fri, 26 Jan 2024 14:15:49 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=VmbzXhku; dmarc=none; spf=none (imf20.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706278550; a=rsa-sha256; cv=none; b=SDry1DspqktPiIvfloVYTcVjiiB9z10Vfnf4m9niLb+jgHALIO1rZrQpmtURhWkyKImDe9 J5cogKZvf2grRymdVlAn87MrQ92Dg7HKasV4tPriu7vtXqUqALSgTnSe4jvH6hhg12Mi8S Zta8BHjjXEbmqdRzMLsXYNsXGM21t/4= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=VmbzXhku; dmarc=none; spf=none (imf20.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706278550; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lCHm6glD5bpRm5gIuN7QlDUHqu736MGenBOlzRNfVEs=; b=B/WADfyTYedINR4rSXBEeXKFZ9ZTHnkfJaWcqHpbgie80KfQzYqtSziTs6DoTGL0/WbOt5 yuUyhmQBGLt4dFJgeILI6o6YZVpQRZR7pK8xz6IVy0vIAhECY8WYyQxOl39yer5+8/cXJv TssN3v+tn/OlHVuY/fRntPUdPLB3ooQ= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lCHm6glD5bpRm5gIuN7QlDUHqu736MGenBOlzRNfVEs=; b=VmbzXhkuXe+tclPmWymAUt3nUA 5TWXCaTc3oBVYSjrYwTebFl9dZjAbTyfbjc4lMIHXWFakuw8ID9HqkcaBbwL8ctFULUnDt4lRqB53 6o/B8shOCnhVWEge7rkyrbGG3YC2005m1VzvsK3PDRUN9NF3HALVtAK4+eXsJitK5+VqvfWGPxJEC 8mNzNNacKve8uq3LHz6kC2sUlkTR4tFGHFBKCoC0UVqCX06Wg3emssDtAjJICAErJ7dPliOy73ISI jHf0pgQJ7D3xHwdYYJsMOq1AuGePZN2crOg30rd3TvtW6XfcgXUzCJYMVRjUEF0JQIJS5xzyiN4Q6 L4z3DRbw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTMzg-0000000DpOU-1tUK; Fri, 26 Jan 2024 14:15:44 +0000 Date: Fri, 26 Jan 2024 14:15:44 +0000 From: Matthew Wilcox To: Christoph Hellwig Cc: Chandan Babu R , "Darrick J. Wong" , Hugh Dickins , Andrew Morton , linux-xfs@vger.kernel.org, linux-mm@kvack.org Subject: Re: put the xfs xfile abstraction on a diet v2 Message-ID: References: <20240126132903.2700077-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240126132903.2700077-1-hch@lst.de> X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 6658D1C001C X-Stat-Signature: zeo7tahtcgt7izkj65diyo3qjs5mtx5i X-HE-Tag: 1706278549-351352 X-HE-Meta: U2FsdGVkX188K2Ed0Op2RQ1+G0m69v/kXWJMgksiyqXiWa47J8hy7g7QePkSy0kfVvnhfEk7kG18F0B3PnKoM+yM+N6wOUecUSmSo1zHBLlCi+igQPRjrHLtGDOLZzyOs9FgqVlvZM+hRFq2J9MA7y1SewNQ7GC0kgu++aATyY2a5lsO0J1C18CrY43YG+rAGmOjRqruVjfA7rhqylXQ6ZeOI3ExlwMOts6mQTXdb7dsKFkm6oA9TZaMd0prGEmYxP55lJMR8p3nc8eMZAFjBv0ENWj9/k4sfPnleADWYJYdQ8TQt6+zc3WXA7mWwk8CSQoPMtV04QMXwtuNhjgLm47C1Jp6l1oGizXh4do+qXK3YNm503uLqkPqD9tYduI5kIKoBgfl6F7DxuzToFzilbcI8VBcNAtFyA55fu7gl7wGfWVClqBEWWVUJ07OUBTXzRDJgq2uAdH8wVUECJwigZdETn3cBwAYSoMZf6drINF+caS81X81RC+x4DCZSeJQEsfWsdplKHWRHtxESI0jZhQILh/PKKV0/OdsBJ8Cao5diXG5QZ4VT0SMXcNouyq3yXYKD2x90IKpwZjUiaF4mtPA//1lDfXpJBNDg8MWa5v3vUl1vPLt6jGfeVYd1/HH3lAwEzaiX+cJmdX2s++6m3NGzsQ6U0SMrsDTq1N1SZ0je2TiWOkGEwowwogTACyoWbGhQWRCNvOfQdxCPhxW9Z7wFxDkSc0N47mo5W48CG0HRNjmcU7oCXziFtUD3ZPNPk6R3sDhaUDe9SGvJHUN07ypqBcTU3tSYduoLNwJ8rEJjmtvsYWH23xv3RdNkMcOp4C7YILMTQ+1b9qXENi9Vw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.011400, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Fri, Jan 26, 2024 at 02:28:42PM +0100, Christoph Hellwig wrote: > One thing I don't really like yet is that xfile is still based on > folios and not pages. The main stumbling block for that is the > mess around the hwpoison flag - that one still is per-file and not > per-folio, and shmem checks it weirdly often and not really in hwpoison is per page not per file. That's intrinsic to, well, hardware poison, it affects an entire page (I'd love to support sub-page poison, but not enough to spend my time working on memory-poison.c). In general, I think there's a lack of understanding of hwpoison, and I include myself in that. Mostly I blame Intel for this; limiting the hardware support to the higher end machines means that most of us just don't care about it. Why even bother checking for hwpoison in xfiles? If you have flaky hardware, well, maybe there's a reason you're having to fsck, and crashing during a fsck might encourage the user to replace their hardware with stuff that works.