diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-11-28 11:33:34 +0300 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-01-26 14:39:03 +0100 |
commit | f844de9aa69cd95c52636e5b4faeaf1353477252 (patch) | |
tree | 76ea582208ababac5db630fe9f4e5acb59b477ba /fs/ceph | |
parent | 03e6a1dc9b69bed1e6c98ddfeb5232208f79e7a0 (diff) | |
download | lwn-f844de9aa69cd95c52636e5b4faeaf1353477252.tar.gz lwn-f844de9aa69cd95c52636e5b4faeaf1353477252.zip |
ceph: do_sync is never initialized
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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs/ceph')
-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 ec3ba43b9faa..f757dffb715e 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -672,7 +672,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; |