X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flu_target.h;h=4708c753bb993fd9606b2097c3e1149a1db8c4d2;hb=71fda130011df5bc7c85183fce0e0add452bb9ae;hp=09c98a6d4827308975bfc358fcc37e83b6550f54;hpb=5ae89cf509f30f00fb6c2bfb58c85b66a16a9f54;p=fs%2Flustre-release.git diff --git a/lustre/include/lu_target.h b/lustre/include/lu_target.h index 09c98a6..4708c75 100644 --- a/lustre/include/lu_target.h +++ b/lustre/include/lu_target.h @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -26,8 +24,10 @@ * 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. + * + * Copyright (c) 2011, Whamcloud, Inc. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -57,8 +57,6 @@ struct lu_target { 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, @@ -69,10 +67,12 @@ struct lut_commit_cb { }; 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 */