From a7407c8adb8c5eb2035209799fffea3a70d83277 Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 21 Jul 2006 19:20:21 +0000 Subject: [PATCH] dt_object_operations: local ->do_ref_{add,del}() cannot fail: this assumption simplifies error handling in higher layers considerably --- lustre/include/dt_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }; -- 1.8.3.1