From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 29 May 2018 15:08:46 +0200 From: Christoph Hellwig To: Brian Foster Cc: Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner Subject: Re: [PATCH 22/34] xfs: make xfs_writepage_map extent map centric Message-ID: <20180529130846.GA8205@lst.de> References: <20180523144357.18985-1-hch@lst.de> <20180523144357.18985-23-hch@lst.de> <20180524145935.GA84959@bfoster.bfoster> <20180524165350.GA22675@lst.de> <20180524181356.GA89391@bfoster.bfoster> <20180525061900.GA16409@lst.de> <20180525113532.GA92036@bfoster.bfoster> <20180528071543.GA5428@lst.de> <20180529112630.GA107328@bfoster.bfoster> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180529112630.GA107328@bfoster.bfoster> Sender: owner-linux-mm@kvack.org List-ID: On Tue, May 29, 2018 at 07:26:31AM -0400, Brian Foster wrote: > What exactly is the trivial check? Can you show the code please? ASSERT(file_offset > i_size_read(inode)) in the !count block at the end of xfs_writepage_map. (file_offset replaced with page_offset(page) + offset for the mainline code).