Skip to content

Commit

Permalink
ceph: do_sync is never initialized
Browse files Browse the repository at this point in the history
Probably this code was syncing a lot more often then intended because
the do_sync variable wasn't set to zero.

Cc: stable@vger.kernel.org # v3.11+
Fixes: c62988e ('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>
  • Loading branch information
Dan Carpenter authored and Ilya Dryomov committed Dec 17, 2014
1 parent 84a1d2d commit 021b77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,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;

Expand Down

0 comments on commit 021b77b

Please sign in to comment.