X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flu_ref.h;h=c7366c0481320efedf1dcced051dd7cdf8c9d36c;hp=da589f1bd1178ec11664900ade27609ff39e8601;hb=917655fc2938b90a9c246dd2d58408c42aa1658d;hpb=2711e4428bc9b1574202ccd8c566557fb102424a diff --git a/lustre/include/lu_ref.h b/lustre/include/lu_ref.h index da589f1..c7366c0 100644 --- a/lustre/include/lu_ref.h +++ b/lustre/include/lu_ref.h @@ -2,7 +2,7 @@ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, Intel Corporation. + * Copyright (c) 2012, 2013, Intel Corporation. * * Author: Nikita Danilov * @@ -26,7 +26,7 @@ #ifndef __LUSTRE_LU_REF_H #define __LUSTRE_LU_REF_H -#include +#include /** \defgroup lu_ref lu_ref * @@ -69,12 +69,12 @@ * * // current thread acquired a temporary reference to foo. * foo_get(foo); - * lu_ref_add(&foo->reference, __FUNCTION__, cfs_current()); + * lu_ref_add(&foo->reference, __FUNCTION__, current); * * ... * * // temporary reference is released. - * lu_ref_del(&foo->reference, __FUNCTION__, cfs_current()); + * lu_ref_del(&foo->reference, __FUNCTION__, current); * foo_put(foo); * \endcode * @@ -121,11 +121,11 @@ struct lu_ref { * Spin-lock protecting lu_ref::lf_list. */ spinlock_t lf_guard; - /** - * List of all outstanding references (each represented by struct - * lu_ref_link), pointing to this object. - */ - cfs_list_t lf_list; + /** + * List of all outstanding references (each represented by struct + * lu_ref_link), pointing to this object. + */ + struct list_head lf_list; /** * # of links. */ @@ -147,12 +147,12 @@ struct lu_ref { /** * Linkage into a global list of all lu_ref's (lu_ref_refs). */ - cfs_list_t lf_linkage; + struct list_head lf_linkage; }; struct lu_ref_link { struct lu_ref *ll_ref; - cfs_list_t ll_linkage; + struct list_head ll_linkage; const char *ll_scope; const void *ll_source; };