From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755893Ab1KUKL7 (ORCPT ); Mon, 21 Nov 2011 05:11:59 -0500 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:39242 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755528Ab1KUKL5 (ORCPT ); Mon, 21 Nov 2011 05:11:57 -0500 Date: Mon, 21 Nov 2011 05:11:55 -0500 From: Christoph Hellwig To: Hugh Dickins Cc: Cong Wang , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Pekka Enberg , Dave Hansen , Lennart Poettering , Kay Sievers , KOSAKI Motohiro , Christoph Hellwig , linux-mm@kvack.org Subject: Re: [V2 PATCH] tmpfs: add fallocate support Message-ID: <20111121101155.GC17887@infradead.org> References: <1321612791-4764-1-git-send-email-amwang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 20, 2011 at 01:22:10PM -0800, Hugh Dickins wrote: > First question that springs to mind (to which I shall easily find > an answer): is it actually acceptable for fallocate() to return > -ENOSPC when it has already completed a part of the work? No, it must undo all allocations if it returns ENOSPC.