[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e36468d6-8944-5fee-fe48-4f8cf4f2f679@nvidia.com>
Date: Thu, 17 Dec 2020 11:36:58 -0800
From: John Hubbard <jhubbard@...dia.com>
To: Matthew Wilcox <willy@...radead.org>
CC: <linux-fsdevel@...r.kernel.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 18/25] btrfs: Use readahead_batch_length
On 12/17/20 5:42 AM, Matthew Wilcox wrote:
> On Thu, Dec 17, 2020 at 12:12:46PM +0000, Matthew Wilcox wrote:
>> ehh ... probably an off-by-one. Does subtracting 1 from contig_end fix it?
>> I'll spool up a test VM shortly and try it out.
>
> Yes, this fixed it:
>
> - u64 contig_end = contig_start + readahead_batch_length(rac);
> + u64 contig_end = contig_start + readahead_batch_length(rac) - 1;
>
Yes, confirmed on my end, too.
thanks,
--
John Hubbard
NVIDIA
Powered by blists - more mailing lists