Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964942AbVITIyR (ORCPT ); Tue, 20 Sep 2005 04:54:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964939AbVITIyQ (ORCPT ); Tue, 20 Sep 2005 04:54:16 -0400 Received: from 223-177.adsl.pool.ew.hu ([193.226.223.177]:12819 "EHLO dorka.pomaz.szeredi.hu") by vger.kernel.org with ESMTP id S964936AbVITIyP (ORCPT ); Tue, 20 Sep 2005 04:54:15 -0400 To: trond.myklebust@fys.uio.no CC: smfrench@austin.rr.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org In-reply-to: <1127180199.26459.17.camel@lade.trondhjem.org> (message from Trond Myklebust on Mon, 19 Sep 2005 21:36:39 -0400) Subject: Re: ctime set by truncate even if NOCMTIME requested References: <432EFAB1.4080406@austin.rr.com> <1127156303.8519.29.camel@lade.trondhjem.org> <432F2684.4040300@austin.rr.com> <1127165311.8519.39.camel@lade.trondhjem.org> <432F5968.1020106@austin.rr.com> <1127180199.26459.17.camel@lade.trondhjem.org> Message-Id: From: Miklos Szeredi Date: Tue, 20 Sep 2005 10:52:40 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 556 Lines: 14 > However if you know the cases where time is set implicitly by the > server, why can't you simply optimise away the ATTR_CTIME and/or > ATTR_MTIME? How? By checking whether ATTR_SIZE is also set? Yes, that would work for truncate(), but it's rather more ugly than the proposed check for IS_NOCMTIME. Miklos - 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/