Whamcloud - gitweb
osd_object_exists(): return strictly 0,1 rather then false/true
authornikita <nikita>
Fri, 7 Jul 2006 11:34:51 +0000 (11:34 +0000)
committernikita <nikita>
Fri, 7 Jul 2006 11:34:51 +0000 (11:34 +0000)
lustre/osd/osd_handler.c

index 75992a7..4dbfc27 100644 (file)
@@ -347,7 +347,7 @@ static int osd_object_exists(const struct lu_context *ctx,
                              const struct lu_object *o)
 {
         LASSERT(osd_invariant(osd_obj(o)));
-        return osd_obj(o)->oo_inode != NULL;
+        return !!(osd_obj(o)->oo_inode != NULL);
 }
 
 static int osd_object_print(const struct lu_context *ctx,
@@ -770,7 +770,7 @@ int osd_xattr_get(const struct lu_context *ctxt, struct dt_object *dt,
 }
 
 int osd_xattr_set(const struct lu_context *ctxt, struct dt_object *dt,
-                  const void *buf, int buf_len, const char *name, 
+                  const void *buf, int buf_len, const char *name,
                   struct thandle *handle)
 {
         return 0;