From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:26820 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813AbcGZRVG (ORCPT ); Tue, 26 Jul 2016 13:21:06 -0400 Subject: Re: [PATCH V20 03/19] Btrfs: subpage-blocksize: Make sure delalloc range intersects with the locked page's range To: Chandan Rajendra , , References: <1467606879-14181-1-git-send-email-chandan@linux.vnet.ibm.com> <1467606879-14181-4-git-send-email-chandan@linux.vnet.ibm.com> CC: From: Josef Bacik Message-ID: Date: Tue, 26 Jul 2016 13:19:54 -0400 MIME-Version: 1.0 In-Reply-To: <1467606879-14181-4-git-send-email-chandan@linux.vnet.ibm.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 07/04/2016 12:34 AM, Chandan Rajendra wrote: > find_delalloc_range indirectly depends on EXTENT_UPTODDATE to make sure that > the delalloc range returned intersects with the file range mapped by the > page. Since we now track "uptodate" state in a per-page > bitmap (i.e. in btrfs_page_private->bstate), this commit makes an explicit > check to make sure that the delalloc range starts from within the file range > mapped by the page. > > Signed-off-by: Chandan Rajendra Reviewed-by: Josef Bacik Thanks, Josef