[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=whKPK=Bn_je2A19rSptpDo589DWxBJi8UQYS7sPjDPurw@mail.gmail.com>
Date: Tue, 14 Mar 2023 16:39:55 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: David Howells <dhowells@...hat.com>
Cc: Jens Axboe <axboe@...nel.dk>, Al Viro <viro@...iv.linux.org.uk>,
Christoph Hellwig <hch@...radead.org>,
Matthew Wilcox <willy@...radead.org>, Jan Kara <jack@...e.cz>,
Jeff Layton <jlayton@...nel.org>,
David Hildenbrand <david@...hat.com>,
Jason Gunthorpe <jgg@...dia.com>,
Logan Gunthorpe <logang@...tatee.com>,
Hillf Danton <hdanton@...a.com>,
Christian Brauner <brauner@...nel.org>,
linux-fsdevel@...r.kernel.org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Daniel Golle <daniel@...rotopia.org>,
Guenter Roeck <groeck7@...il.com>,
Christoph Hellwig <hch@....de>,
John Hubbard <jhubbard@...dia.com>,
Hugh Dickins <hughd@...gle.com>
Subject: Re: [PATCH v18 03/15] shmem: Implement splice-read
On Tue, Mar 14, 2023 at 3:08 PM David Howells <dhowells@...hat.com> wrote:
>
\> +static size_t splice_zeropage_into_pipe(...
> ...
> + *buf = (struct pipe_buffer) {
> + .ops = &zero_pipe_buf_ops,
> + .page = ZERO_PAGE(0),
> + .offset = offset,
> + .len = size,
> + };
> + get_page(buf->page);
That
+ get_page(buf->page);
is still there, and now it's doubly wrong because it's never dropped
and will eventually overflow that count that shouldn't even be there.
Linus
Powered by blists - more mailing lists