[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <501527.1623705086@warthog.procyon.org.uk>
Date: Mon, 14 Jun 2021 22:11:26 +0100
From: David Howells <dhowells@...hat.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: dhowells@...hat.com, jlayton@...nel.org,
linux-afs@...ts.infradead.org, ceph-devel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/3] afs: Fix afs_write_end() to handle short writes
Matthew Wilcox <willy@...radead.org> wrote:
> > means you can't get there unless PageUptodate() is true by that point.
>
> Isn't the point of an assertion to check that this is true?
The assertion was meant to check that that it was true given that the page was
set uptodate somewhere else before this function was even called. With this
patch, however, it's now set in this function if it wasn't already right at
the top - so the assertion should now be redundant. I can put it back if you
really insist.
David
Powered by blists - more mailing lists