Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3953708pxy; Mon, 26 Apr 2021 13:57:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvAtD4+vsD0Ta8q26+juk3SnG+ddvx00DioDxBYsMRqZchZWlur6PskyFQSfM3gZx0QSuD X-Received: by 2002:a62:6448:0:b029:265:4428:3128 with SMTP id y69-20020a6264480000b029026544283128mr20027721pfb.48.1619470622781; Mon, 26 Apr 2021 13:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619470622; cv=none; d=google.com; s=arc-20160816; b=dTuB0zfCLvM7K0R0qkBFbfQIGtFV6GENiwjSmTPq5R4PzyzcOEhMu9Wo155Ummzc8a FO1Id6L/M4GRYpWdQAt14Xz7z56EVKKRJjsHrN65cr+H2jrMwkiActHYNwyzftnV73Vn SHdJTGk5twN+YtQqTmyD+ZYhZfJ5n49J5qOAVWC6gouPf56StHSn9ivLnY/mp5xydaYr iiWVic17QGIgfppKSslVMBr6suasBwx76u46OkOWzQ1mpzKJiHGHNOjsopyCxvIu3Oia ft5B/gIdx1swcjo2UtVQQaFMG9nHOsW+OIMPfE87VmgP3237KiN+nSB1uKJl8qowJDdQ mpsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Zsvd/Qinp/p9KJ8WGTP8ln6jTc3txvxZQ3RZQL+RCH4=; b=RwOptRmXyonc5tmHJawVJ7pd8BV7ynkVXbKNlN3ZLsR7/PW39Ljxev6H8ilrVOnIdJ Dj3KMrGPmGk/hgRZ1wieDyx+FvwevoHp3u8nJvT5hMwT/k3Su2r9mQnfilJl+qaN4n5S uct/UhHeEcvJs1XnpgKUuTts7HS4+GTstwchgCxuiJ1At+L52pDVl03VwPn3DCv42n1h 3RNMeEvmlQbsIse8tuKCyNp01yye4/0hPktsVFX01HT2dg7oFwZEvJItdNz2LW+sq+ki VrKISAfa7kZFyQwntwX4ZKcqZeguflAgi92hxuru9BeL0e/LBgiY9ujrnp0VNuYYCykh S5/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Mh6fPNjd; 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 s19si1062218pfu.44.2021.04.26.13.56.29; Mon, 26 Apr 2021 13:57:02 -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=@linux-foundation.org header.s=google header.b=Mh6fPNjd; 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 S234550AbhDZU4E (ORCPT + 99 others); Mon, 26 Apr 2021 16:56:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233483AbhDZU4D (ORCPT ); Mon, 26 Apr 2021 16:56:03 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E32C061574 for ; Mon, 26 Apr 2021 13:55:21 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 4so30454416lfp.11 for ; Mon, 26 Apr 2021 13:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Zsvd/Qinp/p9KJ8WGTP8ln6jTc3txvxZQ3RZQL+RCH4=; b=Mh6fPNjdra5N9zpGupgnZ3bI/RC5dvEZ3srZKHfmekX5dRYuOORb4UfOFcALxnlyQd 6aAaups4I/YbFe+8howGXUcciIhZfN2kkU/5WUuVH9hjTf0Q0IZvKrYaxGnVJoMP5oem SL4I9MhJjUWCPb64VYzex6iw8haAk4vgPW0/c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Zsvd/Qinp/p9KJ8WGTP8ln6jTc3txvxZQ3RZQL+RCH4=; b=glu6kuUCT6pUmbbCv/CxdiHbAcK7ORuIA+Ke8w31SS6szmRXptAHRfIM6u/9iGnv+a vxrrQsHBybRlnftvICXIve5RxRWGEm4BNHHP9hTHf2tdGy+ufyWl/fRr0V+fLKl36aZ4 9Z/28RsLn5eSjyqW6sIwqSTwX+gnZE64N+AtddyukU0DFh/6mBDZ2Mdr4657J2uOOR03 NaUwOPYxfhvFhntSbGqJQzfco13QfeOwSugvaFXpoeB80dSLzAKIU0ibDbSyAwp5558/ FOq66zWWS8fqaO4hVyQ92JZdxyKH+KXZOTgj4Xs9lCaPD/p9ihzF4FaA9JMZRMB3kdzF +SrA== X-Gm-Message-State: AOAM533qyxGlM1wOBlhvCJ9Ox4D20aSDgTXZI6d9McxPkj9Fz5kb57Tj ZUgryk2XtDEunkc0q9pRj4464OsBwlm1ss9x X-Received: by 2002:a05:6512:21cc:: with SMTP id d12mr13767228lft.512.1619470519777; Mon, 26 Apr 2021 13:55:19 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id v8sm121072ljn.17.2021.04.26.13.55.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Apr 2021 13:55:19 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id y4so50125812lfl.10 for ; Mon, 26 Apr 2021 13:55:19 -0700 (PDT) X-Received: by 2002:a05:6512:3147:: with SMTP id s7mr13714445lfi.41.1619470518895; Mon, 26 Apr 2021 13:55:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Mon, 26 Apr 2021 13:55:03 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Btrfs updates for 5.13 To: David Sterba , "Matthew Wilcox (Oracle)" Cc: David Sterba , linux-btrfs , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Linus