]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix uninitialized vars
authorSage Weil <sage@newdream.net>
Thu, 9 Jul 2009 23:44:09 +0000 (16:44 -0700)
committerSage Weil <sage@newdream.net>
Thu, 9 Jul 2009 23:44:09 +0000 (16:44 -0700)
src/kernel/caps.c
src/kernel/mds_client.c

index 18cec151776e7d73f90a11f7175f09e889163c3b..39907ef8dae4d66b93e10bf304b669d934caa087 100644 (file)
@@ -2081,7 +2081,7 @@ static void handle_cap_flush_ack(struct inode *inode,
        unsigned seq = le32_to_cpu(m->seq);
        int cleaned = le32_to_cpu(m->dirty);
        u64 flush_tid = le64_to_cpu(m->client_tid);
-       int old_dirty, new_dirty;
+       int old_dirty = 0, new_dirty = 0;
 
        dout(10, "handle_cap_flush_ack inode %p mds%d seq %d cleaned %s,"
             " flushing %s -> %s\n",
index 541f2709372cd6e9c569725e21ad024e6a7e57db..69a6069b4162ac0501cd34b69ac510b1812f0782 100644 (file)
@@ -2586,7 +2586,7 @@ static int check_cap_flush(struct ceph_mds_client *mdsc, u64 want_flush_seq)
 static void wait_unsafe_requests(struct ceph_mds_client *mdsc, u64 want_tid)
 {
        struct ceph_mds_request *req;
-       u64 next_tid;
+       u64 next_tid = 0;
        int got;
 
        mutex_lock(&mdsc->mutex);