From: nikita Date: Fri, 21 Jul 2006 19:20:21 +0000 (+0000) Subject: dt_object_operations: local ->do_ref_{add,del}() cannot fail: this assumption simplif... X-Git-Tag: v1_8_0_110~486^2~1359 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=a7407c8adb8c5eb2035209799fffea3a70d83277;p=fs%2Flustre-release.git dt_object_operations: local ->do_ref_{add,del}() cannot fail: this assumption simplifies error handling in higher layers considerably --- diff --git a/lustre/include/dt_object.h b/lustre/include/dt_object.h index 0624848..db80aea 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -204,13 +204,13 @@ struct dt_object_operations { * Add nlink of the object * precondition: lu_object_exists(ctxt, &dt->do_lu); */ - int (*do_ref_add)(const struct lu_context *ctxt, + void (*do_ref_add)(const struct lu_context *ctxt, struct dt_object *dt, struct thandle *th); /* * Del nlink of the object * precondition: lu_object_exists(ctxt, &dt->do_lu); */ - int (*do_ref_del)(const struct lu_context *ctxt, + void (*do_ref_del)(const struct lu_context *ctxt, struct dt_object *dt, struct thandle *th); };