From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q6KIkXQn141475 for ; Fri, 20 Jul 2012 13:46:33 -0500 Message-ID: <5009A786.3080500@sgi.com> Date: Fri, 20 Jul 2012 13:46:30 -0500 From: Mark Tinguely MIME-Version: 1.0 Subject: Re: [PATCH v4] xfs: probe data buffer from page cache for unwritten extents References: <50091696.4000903@oracle.com> In-Reply-To: <50091696.4000903@oracle.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: jeff.liu@oracle.com Cc: xfs@oss.sgi.com On 07/20/12 03:28, Jeff Liu wrote: > Hi All, > > According to Mark and Christoph's comments for v3, except optimizing xfs_seek_data() with unwritten extents > probing, the xfs_seek_hole() is also refined to that in this version. > > Just some feedback. Test program fragment: ret = do_fallocate(fd, 512*1024, 256*1024, 0); if (ret < 0) goto out; pwrite(fd, buf, 4096, 1024*516); lseek(fd, 800*1024, SEEK_SET); ret = write(fd, buf, bufsz); if (ret < 0) goto out; Output: HOLE/DATA at 512K 786432 / 528384 <- undiscovered hole here HOLE/DATA at 516K 786432 / 528384 <- okay, data but we should return next page as hole. HOLE/DATA at 520K 532480 / 819200 <- hole is discovered because there is no trailing data --Mark. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs