Whamcloud - gitweb
- minor fixes against gcc's warnings
authoralex <alex>
Wed, 17 Aug 2005 16:07:18 +0000 (16:07 +0000)
committeralex <alex>
Wed, 17 Aug 2005 16:07:18 +0000 (16:07 +0000)
lustre/mds/handler.c
lustre/mds/mds_capa.c
lustre/obdfilter/filter_io.c

index b72fd1d..075e942 100644 (file)
@@ -325,7 +325,7 @@ struct dentry *mds_id2dentry(struct obd_device *obd, struct lustre_id *id,
         struct dentry *result;
         struct inode *inode;
         unsigned long ino = 0;
-        __u32 generation;
+        __u32 generation = 0;
         char idname[32];
 
         if (!id_ino(id) && id_fid(id)) {
@@ -349,6 +349,7 @@ struct dentry *mds_id2dentry(struct obd_device *obd, struct lustre_id *id,
         } else {
                 CERROR("invalid id for lookup "
                        DLID4"\n", OLID4(id));
+                LBUG();
         }
 
         if (ino == 0)
index 63f9aec..dd85ab6 100644 (file)
@@ -62,7 +62,7 @@ static int mds_write_capa_key(struct obd_device *obd, int force_sync)
         struct file *filp = mds->mds_capa_keys_filp;
         struct lvfs_run_ctxt saved;
         loff_t off = 0;
-        int i, rc;
+        int i, rc = 0;
         ENTRY;
 
         push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
index 337347f..bb2d61a 100644 (file)
@@ -498,13 +498,13 @@ static int filter_preprw_write(int cmd, struct obd_export *exp, struct obdo *oa,
                                struct obd_trans_info *oti)
 {
         int rc = 0, i, tot_bytes = 0, cleanup_phase = 0;
+        struct obd_device *obd = exp->exp_obd;
         struct niobuf_local *lnb = res;
         struct dentry *dentry = NULL;
         unsigned long now = jiffies;
         struct lvfs_run_ctxt saved;
         struct niobuf_remote *rnb;
         struct fsfilt_objinfo fso;
-        struct obd_device *obd;
         obd_size left;
         obd_uid uid;
         obd_gid gid;