fuse: fix mtime update error in fsync
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 28 Apr 2014 12:19:21 +0000 (14:19 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 28 Apr 2014 12:19:21 +0000 (14:19 +0200)
Bad case of shadowing.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c

index 982288a1c6ab1b84c59aeb306a7e57a832061292..7ae1e6972caaeb5c17ad181c3842ac8cf70c2014 100644 (file)
@@ -501,7 +501,7 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
        fuse_sync_writes(inode);
 
        if (test_bit(FUSE_I_MTIME_DIRTY, &get_fuse_inode(inode)->state)) {
-               int err = fuse_flush_mtime(file, false);
+               err = fuse_flush_mtime(file, false);
                if (err)
                        goto out;
        }