[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YRWA0tJy457V4/HO@mit.edu>
Date: Thu, 12 Aug 2021 16:13:06 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: Matthew Wilcox <willy@...radead.org>
Cc: "Darrick J. Wong" <djwong@...nel.org>,
Christoph Hellwig <hch@....de>,
David Howells <dhowells@...hat.com>,
trond.myklebust@...marydata.com, darrick.wong@...cle.com,
jlayton@...nel.org, sfrench@...ba.org,
torvalds@...ux-foundation.org, linux-nfs@...r.kernel.org,
linux-mm@...ck.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] mm: Make swap_readpage() for SWP_FS_OPS use
->direct_IO() not ->readpage()
On Thu, Aug 12, 2021 at 07:14:37PM +0100, Matthew Wilcox wrote:
>
> Well ... this would actually allow the filesystem to break COWs and
> allocate new blocks for holes. Maybe you don't want to be doing that
> in a low-memory situation though ;-)
I'm not sure the benefits are worth the costs. You'd have to handle
ENOSPC errors, and it would require some kind of metadata journal
transaction, which could potentially block for any number of reasons
(not just due to memory allocations, but because you're waiting for a
journal commit to complete). As you say, doing that in a low-memory
situation seems to be unneeded complexity.
- Ted
Powered by blists - more mailing lists