X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_quota.h;h=1e1472f88f242770291cfd2845b80b0819214930;hb=65d63035c60086a89d932c6f9f1691cf93728d74;hp=131b7d939109a349054cebd0fe86669d593b9956;hpb=fb06c1a898a5f0edd248db2cd6fbf8c31eac8dfd;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_quota.h b/lustre/include/lustre_quota.h index 131b7d9..1e1472f 100644 --- a/lustre/include/lustre_quota.h +++ b/lustre/include/lustre_quota.h @@ -21,7 +21,7 @@ * GPL HEADER END */ /* - * Copyright (c) 2011, 2012, Intel, Inc. + * Copyright (c) 2012, Intel Corporation. * Use is subject to license terms. */ @@ -45,6 +45,14 @@ #include #include +#ifndef MAX_IQ_TIME +#define MAX_IQ_TIME 604800 /* (7*24*60*60) 1 week */ +#endif + +#ifndef MAX_DQ_TIME +#define MAX_DQ_TIME 604800 /* (7*24*60*60) 1 week */ +#endif + struct lquota_id_info; struct lquota_trans; @@ -161,7 +169,7 @@ struct qsd_instance; * operation is declared, qsd_op_end() should be called only * once for the whole transaction. * - * - qsd_adjust_quota(): triggers pre-acquire/release if necessary. + * - qsd_op_adjust(): triggers pre-acquire/release if necessary. * * Below are the function prototypes to be used by OSD layer to manage quota * enforcement. Arguments are documented where each function is defined. */ @@ -175,8 +183,12 @@ int qsd_op_begin(const struct lu_env *, struct qsd_instance *, struct lquota_trans *, struct lquota_id_info *, int *); void qsd_op_end(const struct lu_env *, struct qsd_instance *, struct lquota_trans *); -void qsd_adjust_quota(const struct lu_env *, struct qsd_instance *, - union lquota_id *, int); +void qsd_op_adjust(const struct lu_env *, struct qsd_instance *, + union lquota_id *, int); +/* This is exported for the ldiskfs quota migration only, + * see convert_quota_file() */ +int lquota_disk_write_glb(const struct lu_env *, struct dt_object *, + __u64, struct lquota_glb_rec *); /* * Quota information attached to a transaction