4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 only,
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License version 2 for more details (a copy is included
14 * in the LICENSE file that accompanied this code).
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 021110-1307, USA
24 * Copyright (c) 2011, 2012, Intel, Inc.
25 * Use is subject to license terms.
27 * Author: Johann Lombardi <johann@whamcloud.com>
28 * Author: Niu Yawei <niu@whamcloud.com>
32 # define EXPORT_SYMTAB
35 #define DEBUG_SUBSYSTEM S_LQUOTA
37 #include "qsd_internal.h"
39 /* Bump version of global or slave index copy
41 * \param qqi - qsd_qtype_info
42 * \param ver - version to be bumped to
43 * \param global - global or slave index copy?
45 void qsd_bump_version(struct qsd_qtype_info *qqi, __u64 ver, bool global)
50 * Schedule a commit of a lquota entry
52 * \param qqi - qsd_qtype_info
53 * \param lqe - lquota_entry
54 * \param qid - quota id
55 * \param rec - global or slave record to be updated to disk
56 * \param ver - new index file version
57 * \param global- ture : master record; false : slave record
59 void qsd_upd_schedule(struct qsd_qtype_info *qqi, struct lquota_entry *lqe,
60 union lquota_id *qid, union lquota_rec *rec, __u64 ver,