Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753876Ab2JMQXa (ORCPT ); Sat, 13 Oct 2012 12:23:30 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:58332 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753746Ab2JMQX2 (ORCPT ); Sat, 13 Oct 2012 12:23:28 -0400 Date: Sat, 13 Oct 2012 12:23:24 -0400 From: Christoph Hellwig To: Marco Stornelli Cc: Al Viro , Petr Vandrovec , Anton Blanchard , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, Linux FS Devel Subject: Re: [PATCH 17/22] ncpfs: drop vmtruncate Message-ID: <20121013162324.GG19899@infradead.org> References: <506FECC4.1080907@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <506FECC4.1080907@gmail.com> 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 Content-Length: 586 Lines: 15 > if (attr->ia_size != i_size_read(inode)) { > - result = vmtruncate(inode, attr->ia_size); > + result = inode_newsize_ok(inode, attr->ia_size); > if (result) > goto out; > + > + truncate_setsize(inode, attr->ia_size); > mark_inode_dirty(inode); inode_newsize_ok already is done as part of inode_change_ok earlier on. -- 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/