Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753023Ab0FKEuR (ORCPT ); Fri, 11 Jun 2010 00:50:17 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42988 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752896Ab0FKEuN (ORCPT ); Fri, 11 Jun 2010 00:50:13 -0400 Date: Fri, 11 Jun 2010 14:50:07 +1000 From: Nick Piggin To: Tao Ma Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Becker , Christoph Hellwig Subject: Re: [PATCH v4] ocfs2: Let ocfs2_setattr use new truncate sequence. Message-ID: <20100611045007.GC16436@laptop> References: <1276226869-11123-1-git-send-email-tao.ma@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1276226869-11123-1-git-send-email-tao.ma@oracle.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 24 On Fri, Jun 11, 2010 at 11:27:49AM +0800, Tao Ma wrote: > Let ocfs2 use the new truncate sequence. The changes include: > 1. Move inode_change_ok into cluster lock and remove inode_newsize_ok. > 2. Use truncate_setsize directly since we don't implement our > own ->truncate and what we need is "update i_size and > truncate_pagecache" which truncate_setsize now does. > 3. Change some i_size_read to inode->i_size in ocfs2_setattr > since we have i_muext held. > 4. For direct write, ocfs2 actually don't allow write to pass > i_size(see ocfs2_prepare_inode_for_write), so we don't have > a chance to increase i_size. So remove the bogus check. > > Cc: Joel Becker > Cc: Christoph Hellwig > Cc: Nick Piggin The patch looks fine to me. I really appreciate you working on truncate, thanks. -- 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/