From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tao Ma Subject: Re: [PATCH v4] ocfs2: Let ocfs2_setattr use new truncate sequence. Date: Fri, 11 Jun 2010 15:16:13 +0800 Message-ID: <4C11E2BD.2020207@oracle.com> References: <1276226869-11123-1-git-send-email-tao.ma@oracle.com> <20100611065635.GA19692@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Becker , Nick Piggin , "tao.ma" To: Christoph Hellwig Return-path: Received: from rcsinet10.oracle.com ([148.87.113.121]:22721 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751628Ab0FKHQj (ORCPT ); Fri, 11 Jun 2010 03:16:39 -0400 In-Reply-To: <20100611065635.GA19692@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Christoph, On 06/11/2010 02:56 PM, Christoph Hellwig wrote: > This looks correct, but still has the second if ATTR_SIZE block that > I commented on last time. I'd really prefer if the filesystems could > move the truncate handling into a single conditional to simplify > auditing for it and possibly splitting it out into a separate method > later. oh, that would be much work for ocfs2 to do from my perspective. So I would really want to leave it as-is and I have add it to my to-do list. > > And btw, the S_ISREG check which you only have on the first ATTR_SIZE > check is superflous, the VFS only does ATTR_SIZE calls on regular files. yeah, I can remove it. Regards, Tao