Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753403AbbD2FUK (ORCPT ); Wed, 29 Apr 2015 01:20:10 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:56404 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753141AbbD2FUI (ORCPT ); Wed, 29 Apr 2015 01:20:08 -0400 X-AuditID: cbfee61a-f79516d000006302-c0-55406a06071a From: Chao Yu To: "'Jaegeuk Kim'" , "'Changman Lee'" Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <007901d079be$9cfb81e0$d6f285a0$@samsung.com> In-reply-to: <007901d079be$9cfb81e0$d6f285a0$@samsung.com> Subject: RE: [f2fs-dev] [PATCH 1/2] f2fs: support FALLOC_FL_COLLAPSE_RANGE Date: Wed, 29 Apr 2015 13:19:21 +0800 Message-id: <01f101d0823c$280bb950$78232bf0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQCraoV+BTcNq488H4jn4KlzsAcBE5+taXkg Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsVy+t9jAV22LIdQg0XtQhbX9jUyWTxZP4vZ 4tIid4vLu+awObB4bFrVyeaxe8FnJo++LasYPT5vkgtgieKySUnNySxLLdK3S+DKuHP0HnvB MY6K3V07WBsYv7N1MXJySAiYSLw818AKYYtJXLi3HijOxSEksIhR4l/bXyaQhJDAK0aJprOl IDabgIrE8o7/YHERAT+J6fe/AjVwcDALeEjsOlYKUW4p0TZtFzOIzSlgJfH51xMWEFtYwEti 9Z05LCDlLAKqEgs/FYCEeYHKVz09xAhhC0r8mHwPrJxZQEti/c7jTBC2vMTmNW+ZIc5UkNhx 9jUjxAVGEvcvTYWqEZfYeOQWywRGoVlIRs1CMmoWklGzkLQsYGRZxSiaWpBcUJyUnmuoV5yY W1yal66XnJ+7iREc/s+kdjCubLA4xCjAwajEwyug6xAqxJpYVlyZe4hRgoNZSYR3TSRQiDcl sbIqtSg/vqg0J7X4EKM0B4uSOO8cXblQIYH0xJLU7NTUgtQimCwTB6dUA+OR6iCuCTXSrBwL PFbOeKRU39jl8zODx/1FzvIS7e+LN88xvHfZ6c1CtX2CGRaLCxw3dvm5RqzcP+9wi+p+1YQp uWLpwZUns2yFm7T9eXdWb5Zb0dq5RSROn1E5QYCz7/D77S5fd5i4Cc9/UH5qaf1z/X3lfMdb fMsEF94Ot5FPX/DngfD5VUosxRmJhlrMRcWJAFKUUZp7AgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1316 Lines: 28 Ping, any comments? > -----Original Message----- > From: Chao Yu [mailto:chao2.yu@samsung.com] > Sent: Saturday, April 18, 2015 6:01 PM > To: Jaegeuk Kim; Changman Lee > Cc: linux-kernel@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net > Subject: [f2fs-dev] [PATCH 1/2] f2fs: support FALLOC_FL_COLLAPSE_RANGE > > Now, FALLOC_FL_COLLAPSE_RANGE flag in ->fallocate is supported in ext4/xfs. > > In commit, the semantics of this flag is descripted as following: > "1) It collapses the range lying between offset and length by removing any data > blocks which are present in this range and than updates all the logical > offsets of extents beyond "offset + len" to nullify the hole created by > removing blocks. In short, it does not leave a hole. > 2) It should be used exclusively. No other fallocate flag in combination. > 3) Offset and length supplied to fallocate should be fs block size aligned > in case of xfs and ext4. > 4) Collaspe range does not work beyond i_size." > > This patch implements fallocate's FALLOC_FL_COLLAPSE_RANGE for f2fs. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/