X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flu_target.h;h=1ec6e66e678d589af69dd87b07f7d09211ebe257;hb=64401149ef68b9291ae84acefe1681441d4bdb83;hp=811f47e6d17e4ca9c0f84c7c97be7c53384adc0d;hpb=6e3ec5812ebd1b5ecf7cae584f429b013ffe7431;p=fs%2Flustre-release.git diff --git a/lustre/include/lu_target.h b/lustre/include/lu_target.h index 811f47e..1ec6e66 100644 --- a/lustre/include/lu_target.h +++ b/lustre/include/lu_target.h @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -56,11 +56,7 @@ struct lu_target { /** Lock protecting client bitmap */ cfs_spinlock_t lut_client_bitmap_lock; /** Bitmap of known clients */ - unsigned long lut_client_bitmap[LR_CLIENT_BITMAP_SIZE]; - /** Number of mounts */ - __u64 lut_mount_count; - __u32 lut_stale_export_age; - cfs_spinlock_t lut_trans_table_lock; + unsigned long *lut_client_bitmap; }; typedef void (*lut_cb_t)(struct lu_target *lut, __u64 transno, @@ -76,5 +72,6 @@ void lut_cb_client(struct lu_target *, __u64, void *, int); int lut_init(const struct lu_env *, struct lu_target *, struct obd_device *, struct dt_device *); void lut_fini(const struct lu_env *, struct lu_target *); - +int lut_client_alloc(struct obd_export *); +void lut_client_free(struct obd_export *); #endif /* __LUSTRE_LU_TARGET_H */