X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fmgs%2Fmgs_internal.h;h=fc3687c685cbb28f6bce7b11f56ba137f90bc47a;hb=1ea94be2430b358b898642461d9f111adeed9e70;hp=00aae388e6e6aa327dcf6bd4914ba70d9e7ef0e3;hpb=7337db63e1212ef4422a5fe88e1e42e03161daeb;p=fs%2Flustre-release.git diff --git a/lustre/mgs/mgs_internal.h b/lustre/mgs/mgs_internal.h index 00aae38..fc3687c 100644 --- a/lustre/mgs/mgs_internal.h +++ b/lustre/mgs/mgs_internal.h @@ -27,7 +27,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2011, 2012, Intel Corporation. + * Copyright (c) 2011, 2013, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -148,7 +148,7 @@ struct fs_db { struct completion fsdb_notify_comp; cfs_time_t fsdb_notify_start; cfs_atomic_t fsdb_notify_phase; - volatile int fsdb_notify_async:1, + volatile unsigned int fsdb_notify_async:1, fsdb_notify_stop:1; /* statistic data */ unsigned int fsdb_notify_total; @@ -239,18 +239,17 @@ int mgs_client_free(struct obd_export *exp); int mgs_fs_setup(const struct lu_env *env, struct mgs_device *m); int mgs_fs_cleanup(const struct lu_env *env, struct mgs_device *m); -#define strsuf(buf, suffix) (strcmp((buf)+strlen(buf)-strlen(suffix), (suffix))) #ifdef LPROCFS -int lproc_mgs_setup(struct mgs_device *mgs, char *osd_name); +int lproc_mgs_setup(struct mgs_device *mgs, const char *osd_name); void lproc_mgs_cleanup(struct mgs_device *mgs); int lproc_mgs_add_live(struct mgs_device *mgs, struct fs_db *fsdb); int lproc_mgs_del_live(struct mgs_device *mgs, struct fs_db *fsdb); void lprocfs_mgs_init_vars(struct lprocfs_static_vars *lvars); #else -static inline int lproc_mgs_setup(struct mgs_device *mgs) -{return 0;} -static inline int lproc_mgs_cleanup(struct mgs_device *mgs) +static inline int lproc_mgs_setup(struct mgs_device *mgs, const char *osd_name) {return 0;} +static inline void lproc_mgs_cleanup(struct mgs_device *mgs) +{} static inline int lproc_mgs_add_live(struct mgs_device *mgs, struct fs_db *fsdb) {return 0;} static inline int lproc_mgs_del_live(struct mgs_device *mgs, struct fs_db *fsdb)