X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fhpfs%2Ffile.c;fp=fs%2Fhpfs%2Ffile.c;h=d3b9fffe45a140bedc792f9022f4af7c8f7908ce;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=ab144dabd870caf4d50732d3153cd0f193c564ff;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c index ab144dabd..d3b9fffe4 100644 --- a/fs/hpfs/file.c +++ b/fs/hpfs/file.c @@ -114,15 +114,12 @@ 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; } -struct file_operations hpfs_file_ops = +const struct file_operations hpfs_file_ops = { .llseek = generic_file_llseek, .read = generic_file_read,