From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2F68C4727E for ; Tue, 22 Sep 2020 13:22:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 99DBB206C9 for ; Tue, 22 Sep 2020 13:22:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbgIVNWg (ORCPT ); Tue, 22 Sep 2020 09:22:36 -0400 Received: from verein.lst.de ([213.95.11.211]:44589 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbgIVNWg (ORCPT ); Tue, 22 Sep 2020 09:22:36 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 52A3B67373; Tue, 22 Sep 2020 15:22:34 +0200 (CEST) Date: Tue, 22 Sep 2020 15:22:34 +0200 From: Christoph Hellwig To: Goldwyn Rodrigues Cc: linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, david@fromorbit.com, hch@lst.de, johannes.thumshirn@wdc.com, dsterba@suse.com, darrick.wong@oracle.com, josef@toxicpanda.com, Goldwyn Rodrigues Subject: Re: [PATCH 06/15] btrfs: Move pos increment and pagecache extension to btrfs_buffered_write() Message-ID: <20200922132234.GE20432@lst.de> References: <20200921144353.31319-1-rgoldwyn@suse.de> <20200921144353.31319-7-rgoldwyn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921144353.31319-7-rgoldwyn@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, Sep 21, 2020 at 09:43:44AM -0500, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues > > While we do this, correct the call to pagecache_isize_extended(): > - pagecache_isisze_extended needs to be called to the starting of the > write as opposed to i_size > - We don't need to check range before the call, this is done in the > function > > Signed-off-by: Goldwyn Rodrigues Looks good, Reviewed-by: Christoph Hellwig