From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Layton Subject: Re: [PATCH] vfs: pass struct file to do_truncate on O_TRUNC opens Date: Mon, 15 Mar 2010 19:03:33 -0400 Message-ID: <20100315190333.195a327a@tlielax.poochiereds.net> References: <1268689152-19168-1-git-send-email-jlayton@redhat.com> <1268692288.3040.2.camel@localhost.localdomain> <20100315184702.35c4d140@tlielax.poochiereds.net> <20100315225037.GX30031@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Trond Myklebust , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Al Viro Return-path: In-Reply-To: <20100315225037.GX30031-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Mon, 15 Mar 2010 22:50:37 +0000 Al Viro wrote: > On Mon, Mar 15, 2010 at 06:47:02PM -0400, Jeff Layton wrote: > > > Yeah that would be cleaner on the wire for the create case. It's not > > clear to me how to implement that though. There doesn't appear to be > > a straightforward way to tell the VFS to skip the truncate. > > The plan is to turn most of the guts of do_last() into fs method... Thanks Al, that makes sense. Does the patch I've proposed look reasonable in the interim? -- Jeff Layton -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html