X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Fdt_object.h;h=4b98848e18d654d2c250363ebd95cdcc16425cb0;hp=49218736996268befb010bc983292c9ea0ad7ad2;hb=4f53536d002c13886210b672b657795baa067144;hpb=b1f01a709ffe66d82f13ad421d319432d235c05b diff --git a/lustre/include/dt_object.h b/lustre/include/dt_object.h index 4921873..4b98848 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -1779,6 +1779,12 @@ static inline struct dt_object *lu2dt_obj(struct lu_object *o) return container_of0(o, struct dt_object, do_lu); } +static inline struct dt_object *dt_object_child(struct dt_object *o) +{ + return container_of0(lu_object_next(&(o)->do_lu), + struct dt_object, do_lu); +} + /** * This is the general purpose transaction handle. * 1. Transaction Life Cycle