* [PATCH] hpfs: remove spurious mtime update
@ 2005-11-07 4:41 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2005-11-07 4:41 UTC (permalink / raw)
To: akpm, mikulas; +Cc: linux-fsdevel
Remove mtime update in hpfs_file_write, it's done in generic_file_write
already.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6/fs/hpfs/file.c
===================================================================
--- linux-2.6.orig/fs/hpfs/file.c 2005-11-04 13:49:54.000000000 +0100
+++ linux-2.6/fs/hpfs/file.c 2005-11-06 20:59:42.000000000 +0100
@@ -114,11 +114,8 @@
ssize_t retval;
retval = generic_file_write(file, buf, count, ppos);
- if (retval > 0) {
- struct inode *inode = file->f_dentry->d_inode;
- inode->i_mtime = CURRENT_TIME_SEC;
- hpfs_i(inode)->i_dirty = 1;
- }
+ if (retval > 0)
+ hpfs_i(file->f_dentry->d_inode)->i_dirty = 1;
return retval;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-07 4:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 4:41 [PATCH] hpfs: remove spurious mtime update 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).