linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add some notes on file_update_time
@ 2005-11-10 23:38 Christoph Hellwig
  2005-11-10 23:41 ` Anton Altaparmakov
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2005-11-10 23:38 UTC (permalink / raw)
  To: akpm; +Cc: linux-fsdevel

add some notes on why this function should only be used in the write
methods, and what NOCTIME is about.


Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6/fs/inode.c
===================================================================
--- linux-2.6.orig/fs/inode.c	2005-11-08 12:57:19.000000000 +0100
+++ linux-2.6/fs/inode.c	2005-11-08 12:57:19.000000000 +0100
@@ -1211,7 +1211,12 @@
  *	@file: file accessed
  *
  *	Update the mtime and ctime members of an inode and mark the inode
- *	for writeback.
+ *	for writeback.  Note that this function is meant exclusively for
+ *	usage in the file write path of filesystems, and filesystems may
+ *	chose to explicitly ignore update via this function with the
+ *	S_NOCTIME inode flag, e.g. for network filesystem where these
+ *	timestamps are handled by the server.  All explicit ctime/mtime
+ *	updates must be done via notify_change().
  */
 
 void file_update_time(struct file *file)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-10 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-10 23:38 [PATCH] add some notes on file_update_time Christoph Hellwig
2005-11-10 23:41 ` Anton Altaparmakov
2005-11-10 23:45   ` Christoph Hellwig
2005-11-10 23:47     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).