diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-11-28 03:33:34 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@redhat.com> | 2014-12-17 12:09:53 -0500 |
commit | 021b77bee210843bed1ea91b5cad58235ff9c8e5 (patch) | |
tree | c0abbfe14bfcd0f8a2ea359a8c4030318c73ba10 /fs | |
parent | 84a1d2d1ecd9ae2fc1ae51d8529090000e88a210 (diff) |
ceph: do_sync is never initialized
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: 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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 70a3b441261b..f5013d92a7e6 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -689,7 +689,7 @@ static int ceph_writepages_start(struct address_space *mapping, | |||
689 | int rc = 0; | 689 | int rc = 0; |
690 | unsigned wsize = 1 << inode->i_blkbits; | 690 | unsigned wsize = 1 << inode->i_blkbits; |
691 | struct ceph_osd_request *req = NULL; | 691 | struct ceph_osd_request *req = NULL; |
692 | int do_sync; | 692 | int do_sync = 0; |
693 | u64 truncate_size, snap_size; | 693 | u64 truncate_size, snap_size; |
694 | u32 truncate_seq; | 694 | u32 truncate_seq; |
695 | 695 | ||