* 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.
*/
/*
cfs_spinlock_t lut_client_bitmap_lock;
/** Bitmap of known clients */
unsigned long *lut_client_bitmap;
- /** Number of mounts */
- __u64 lut_mount_count;
};
typedef void (*lut_cb_t)(struct lu_target *lut, __u64 transno,
};
void lut_boot_epoch_update(struct lu_target *);
-void lut_cb_last_committed(struct lu_target *, __u64, void *, int);
-void lut_cb_client(struct lu_target *, __u64, void *, int);
+int lut_last_commit_cb_add(struct thandle *th, struct lu_target *lut,
+ struct obd_export *exp, __u64 transno);
+int lut_new_client_cb_add(struct thandle *th, struct obd_export *exp);
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 */