]> err.no Git - linux-2.6/commitdiff
[PATCH] hpfs: remove spurious mtime update
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Nov 2005 05:34:56 +0000 (21:34 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:55:57 +0000 (07:55 -0800)
Remove mtime update in hpfs_file_write, it's done in generic_file_write
already.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/hpfs/file.c

index ab144dabd870caf4d50732d3153cd0f193c564ff..7c995ac4081bcbbbf1c1b0cf0eec5c0a3691413a 100644 (file)
@@ -114,11 +114,8 @@ static ssize_t hpfs_file_write(struct file *file, const char __user *buf,
        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;
 }