Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756090Ab3EBJeO (ORCPT ); Thu, 2 May 2013 05:34:14 -0400 Received: from mail.parknet.co.jp ([210.171.160.6]:46742 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094Ab3EBJeN (ORCPT ); Thu, 2 May 2013 05:34:13 -0400 From: OGAWA Hirofumi To: Namjae Jeon Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Namjae Jeon , Amit Sahrawat Subject: Re: [PATCH RESEND v5] fat: editions to support fat_fallocate References: <1367107703-2665-1-git-send-email-linkinjeon@gmail.com> <87ppxd4ddm.fsf@devron.myhome.or.jp> <87bo8v42wx.fsf@devron.myhome.or.jp> <87vc722cdu.fsf@devron.myhome.or.jp> <87r4hp3kax.fsf@devron.myhome.or.jp> <87k3nh3jzi.fsf@devron.myhome.or.jp> Date: Thu, 02 May 2013 18:34:08 +0900 In-Reply-To: (Namjae Jeon's message of "Thu, 2 May 2013 18:15:21 +0900") Message-ID: <87fvy53eun.fsf@devron.myhome.or.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 23 Namjae Jeon writes: >>> AFAIK, preallocation != fallocate. ext*'s preallocation was there at >>> before fallocation to optimize block allocation for user data blocks. > yes, this is correct , preallocation!= fallocate, we just adopted only > the "release part" from that approach > Sorry, Would you mind to adopt this approach :) ? I'm ok as start if it works. But from this discussion, discard at last close(2) doesn't look like working for your requirement. Since you want to discard at last close of inode, so, rather, I guess you actually want to discard at last dereference of inode. Thanks. -- OGAWA Hirofumi -- 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/