Whamcloud - gitweb
40b064eee4ebc2eca472f160e869b5eeaf01863d
[fs/lustre-release.git] / lustre / quota / qsd_writeback.c
1 /*
2  * GPL HEADER START
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
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.
9  *
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).
15  *
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
20  *
21  * GPL HEADER END
22  */
23 /*
24  * Copyright (c) 2011, 2012, Intel, Inc.
25  * Use is subject to license terms.
26  *
27  * Author: Johann Lombardi <johann@whamcloud.com>
28  * Author: Niu    Yawei    <niu@whamcloud.com>
29  */
30
31 #ifndef EXPORT_SYMTAB
32 # define EXPORT_SYMTAB
33 #endif
34
35 #define DEBUG_SUBSYSTEM S_LQUOTA
36
37 #include "qsd_internal.h"
38
39 /* Bump version of global or slave index copy
40  *
41  * \param qqi    - qsd_qtype_info
42  * \param ver    - version to be bumped to
43  * \param global - global or slave index copy?
44  */
45 void qsd_bump_version(struct qsd_qtype_info *qqi, __u64 ver, bool global)
46 {
47 }
48
49 /*
50  * Schedule a commit of a lquota entry
51  *
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
58  */
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,
61                       bool global)
62 {
63 }