]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
ceph: do_sync is never initialized
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Nov 2014 08:33:34 +0000 (11:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:33 +0000 (06:59 -0800)
commit 021b77bee210843bed1ea91b5cad58235ff9c8e5 upstream.

Probably this code was syncing a lot more often then intended because
the do_sync variable wasn't set to zero.

Fixes: c62988ec0910 ('ceph: avoid meaningless calling ceph_caps_revoking if sync_mode == WB_SYNC_ALL.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/addr.c

index b53278c9fd9718509e96d91d3ea1027581714214..94a85ee5b9906d23126af099c2a39939fc0712c0 100644 (file)
@@ -676,7 +676,7 @@ static int ceph_writepages_start(struct address_space *mapping,
        int rc = 0;
        unsigned wsize = 1 << inode->i_blkbits;
        struct ceph_osd_request *req = NULL;
-       int do_sync;
+       int do_sync = 0;
        u64 truncate_size, snap_size;
        u32 truncate_seq;