From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 09EAC7CBF for ; Wed, 31 Jul 2013 17:02:59 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay3.corp.sgi.com (Postfix) with ESMTP id 699AEAC005 for ; Wed, 31 Jul 2013 15:02:55 -0700 (PDT) Date: Wed, 31 Jul 2013 18:01:54 -0400 From: Theodore Ts'o Subject: Re: [PATCH 1/3] fs: Introduce new flag FALLOC_FL_COLLAPSE_RANGE Message-ID: <20130731220154.GA11378@thunk.org> References: <1375281721-15840-1-git-send-email-linkinjeon@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1375281721-15840-1-git-send-email-linkinjeon@gmail.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Namjae Jeon Cc: elder@kernel.org, Namjae Jeon , linux-kernel@vger.kernel.org, xfs@oss.sgi.com, hch@infradead.org, bpm@sgi.com, adilger.kernel@dilger.ca, a.sangwan@samsung.com, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Have you considered what happens if you have a 10 megabyte file, of which the first 5 megs are mmap'ed into a userspace process. Now suppose you call COLLAPASE_RANGE on a one megabyte range starting at offset 1024k from the beginning of the file. Does the right thing happen to the mmap'ed region in memory? Cheers, - Ted _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs