Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp859599pxa; Wed, 19 Aug 2020 17:36:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDdHLLCsOtV1gkRoayBLXfWqASMjycyXw7qrySxctjyrbgcwgOFl+4r665FYqVa/QFXre9 X-Received: by 2002:a17:906:4a0d:: with SMTP id w13mr838091eju.247.1597883777038; Wed, 19 Aug 2020 17:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597883777; cv=none; d=google.com; s=arc-20160816; b=B5w4hebB9ftTevJdwfkDMXU0HhvSz9dr86SxkMmTEhh5roGy0sp5wPclKSqSYqqHyn gE7//CMEMpecSaDQU55INjotsaXuZOFI5H6nBwbQ5KUaNNVWUO6J39EKLzLCvuapaOUZ wtGYPz6RGoRwT1WAy9EDzGF1tc9yz6I3w0x9DierkSk9T8ZjthCnd4QxL3Y/vA9rZBHh Q+GwTTfu6FQJCv0OWUuFQfinmuNvUdsuO9ZwVZbnJ1xtBpurA0gvaDXGVnHuvNgx4zrv r+iITL4N4T1pm+7O2rMKKE91kam9TAX6MGCkqRvlmCu94AGt2DC/aKC9DJ/P4pq91KzU POGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3l/w2O5akRgsmLKW822D+h7KpzfmQAREhsNut0acb88=; b=qRUudxZD+GcHXlhka+rfP6rtLa3kzoeZV14Tno9J9fumQBdwugVse5XK8zUMfs5JR3 jnyxwP9uSU9RjUzpo0mlNMdifBXC8mReoG9od1Yzp1X0A88PYu09+ysoLq/6FioxoCLm qs/ZguQ91ewJ985UUP1/Ymt6JOPttWXfVc5DasjC9Q4x0dTVqNlRZYw5tjbu29TTXDxt ranthEZ25Bg3uNUMPOzs9Ti6LZjLMw/tD4p4S/1rEVRzREfIufI4pm6vtcBLVulmuPu9 9weDu5F1dvA7/D9OtLlQXulHbpPb5GZp3F1mSANCcJwPGvjfNzArptcinLkN+Wd8O0Iz H/Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LHM0spli; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si314280edh.243.2020.08.19.17.35.53; Wed, 19 Aug 2020 17:36:17 -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=@kernel.org header.s=default header.b=LHM0spli; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726707AbgHTAdP (ORCPT + 99 others); Wed, 19 Aug 2020 20:33:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:55464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726609AbgHTAdP (ORCPT ); Wed, 19 Aug 2020 20:33:15 -0400 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71BDB20885; Thu, 20 Aug 2020 00:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597883594; bh=3l/w2O5akRgsmLKW822D+h7KpzfmQAREhsNut0acb88=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LHM0spli8a+Ks91qeosSQyO0SyvYKhlXdCspZS/wFJCdzVOgcEx8tla/8SfEca9Bz VxTHyfiTYCFvfqssKNjle+yjC7tHH/iqWtJK44giXpAy4yLUgjWfdVtvDdPp81xBVR IgQIOeYDO9pQYIsO2l9IyrIegAS02OmlVX18cFdI= Received: by mail-lf1-f48.google.com with SMTP id j22so96235lfm.2; Wed, 19 Aug 2020 17:33:14 -0700 (PDT) X-Gm-Message-State: AOAM5310cU+2Pb11I+Uv66kvg08geO2H+FtX7TixmTISiK1HR4xpkEsD Hn71Q5wf+Qzxax9UjDA84RWRs8heFzVLsp2FPF8= X-Received: by 2002:ac2:4881:: with SMTP id x1mr311819lfc.162.1597883592706; Wed, 19 Aug 2020 17:33:12 -0700 (PDT) MIME-Version: 1.0 References: <20200818054206.6612-1-tian.xianting@h3c.com> In-Reply-To: <20200818054206.6612-1-tian.xianting@h3c.com> From: Song Liu Date: Wed, 19 Aug 2020 17:33:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] md: only calculate blocksize once and use i_blocksize() To: Xianting Tian Cc: linux-raid , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2020 at 10:49 PM Xianting Tian wrote: > > We alreday has the interface i_blocksize(), which can be used > to get blocksize, so use it. > Only calculate blocksize once and use it within read_page(). > > Signed-off-by: Xianting Tian Thanks for the patch. Applied to md-next.