summaryrefslogtreecommitdiffstats
path: root/fs/hpfs/file.c
diff options
context:
space:
mode:
authorChristoph Hellwig2005-11-09 06:34:56 +0100
committerLinus Torvalds2005-11-09 16:55:57 +0100
commit33096b1e735b0a36c289ced394da7a25e94bc815 (patch)
treee1cd73223ce1a98615e092ce388aaed2b6704645 /fs/hpfs/file.c
parent[PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason (diff)
downloadkernel-qcow2-linux-33096b1e735b0a36c289ced394da7a25e94bc815.tar.gz
kernel-qcow2-linux-33096b1e735b0a36c289ced394da7a25e94bc815.tar.xz
kernel-qcow2-linux-33096b1e735b0a36c289ced394da7a25e94bc815.zip
[PATCH] hpfs: remove spurious mtime update
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>
Diffstat (limited to 'fs/hpfs/file.c')
-rw-r--r--fs/hpfs/file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c
index ab144dabd870..7c995ac4081b 100644
--- a/fs/hpfs/file.c
+++ b/fs/hpfs/file.c
@@ -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;
}