Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3963093pxy; Mon, 26 Apr 2021 14:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2AHEYU5v4za3/On12Yw5AC09s0O6G4Gq0vXTH7eYwyU+3Yba2He3QGUS3ugKOJufnb/49 X-Received: by 2002:a17:906:ae8f:: with SMTP id md15mr3970089ejb.244.1619471422487; Mon, 26 Apr 2021 14:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619471422; cv=none; d=google.com; s=arc-20160816; b=s/lQgmNY+5njqArSGcDGBFQjRXXcSzHLbsGPKjeZvwOJdWCjFZGTwOVuVOHRw1M9yN 64fUHTg+HoKXJxGQC5hsnzNa+VlhclkqdftluUUH9BvmbFR0aRwbImpj6UZ6FU3sGcSq sY1rZhJHu/VnH5c/vOJV75CXUis+PyAl9SpJTPJ/C4AFxzyy8wxm7wF7BT7GdNBNGc9+ nzXRKzOQej2Xe6uz9lYOg95xhspKwDyoTITGKmyS0zNGKZJ1eHeGYZkJWKOsDiyK47nf bUd5QyOy67pIu6nZeKeg3D+KybxydSwZ6UmwxozSuwKw2B5NGjUivLn5LTXXB0fXFVPe gksg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=19wB8Qe2dQhskC7FNPcGmP7e6BQaLpFsmVyER60Ukps=; b=FHARTVqg8sxZHWfqku0lXh2ZHEzwSOdEoQgYxxw5oIubjcJatM0Y4Yqq/tuWx65vGh 8jMksx2f54OlUeAvUEyn/MwTMrryjdICVYR8NDkqLRcMRZMAuOYQOH0K7GAEVmEmE1Z2 imGCewutw8gF+zsNaNG1vIHo42Do/GjeddZr+aEYsI8/GIuuOMHSKy5LqQYqRtxNQbe0 qRY3ySex+XIjpCG2VRDn0PzLPa2ms0AtHZVRQX3FZ6dM0k1caRXEdfiWlavtRzc1DUEs +GJK0XjNknkIO5HaBSgLD99Mwvu3QyhWEGdP9HZeZFIMbk3NOJ7zjZ4dcouNaTpgiXqi hYKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="L/M2JsMw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kw6si14498017ejc.380.2021.04.26.14.09.58; Mon, 26 Apr 2021 14:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="L/M2JsMw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237042AbhDZVId (ORCPT + 99 others); Mon, 26 Apr 2021 17:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234275AbhDZVId (ORCPT ); Mon, 26 Apr 2021 17:08:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05DE8C061574; Mon, 26 Apr 2021 14:07:51 -0700 (PDT) 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=19wB8Qe2dQhskC7FNPcGmP7e6BQaLpFsmVyER60Ukps=; b=L/M2JsMwAehKPT0APsUFQ2GrWm DPNdu5guEKsukAbRy2AiEOVYBlxym/CtxvJLDYIlIVUe1ydMrsxwbbEuIMykqx4p7fuVtuAX1MVhI 2Wr59V/QLKqIR82MdobX0onak16JLkrpCkSVk8XO9kGQJrN8MAuzSXKAvDq9gLovUcD89Xqedol75 NA9EJQmh+rw9cuW6QvLbtVf9TOuJnDO1BV4+/xMQkfxiUrkArKGPDkHhV3Km9mB2R/02OIcTxxH2J KbxXQOTeJD++8dduO7+Scw9pp3IUVo3x7YW0RyGC8hmNLkjPTRhiq5O7/p5w2ZNwFu3apVD1rfKlM UZvthX+A==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lb8S2-0066B7-R8; Mon, 26 Apr 2021 21:07:32 +0000 Date: Mon, 26 Apr 2021 22:07:30 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: David Sterba , David Sterba , linux-btrfs , Linux Kernel Mailing List Subject: Re: [GIT PULL] Btrfs updates for 5.13 Message-ID: <20210426210730.GR235567@casper.infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 01:55:03PM -0700, Linus Torvalds wrote: > I've pulled this, but: > > On Mon, Apr 26, 2021 at 1:01 PM David Sterba wrote: > > > > Matthew Wilcox (Oracle) (1): > > btrfs: add and use readahead_batch_length > > This one is buggy, or at least questionable. > > Yes, yes, the function looks trivial. That doesn't make it right: > > static inline loff_t readahead_batch_length(struct readahead_control *rac) > { > return rac->_batch_count * PAGE_SIZE; > } > > the above does not get the types right, and silently does different > typecasting than the code clearly intends from the return type of the > function. > > It may not matter much in practice, but it's still wrong. Thanks. You're right that it doesn't matter in practice (because a batch length is always much, much less than 4GB), but I'll fix it to return a size_t (which is just the obvious s/loff_t/size_t/, because PAGE_SIZE is an unsigned long).