Blame view
fs/gfs2/quota.h
1.81 KB
b3b94faa5 [GFS2] The core o... |
1 2 |
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. |
3a8a9a103 [GFS2] Update cop... |
3 |
* Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. |
b3b94faa5 [GFS2] The core o... |
4 5 6 |
* * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions |
e9fc2aa09 [GFS2] Update cop... |
7 |
* of the GNU General Public License version 2. |
b3b94faa5 [GFS2] The core o... |
8 9 10 11 |
*/ #ifndef __QUOTA_DOT_H__ #define __QUOTA_DOT_H__ |
f2f7ba523 [GFS2] Make heade... |
12 13 |
struct gfs2_inode; struct gfs2_sbd; |
1495f230f vmscan: change sh... |
14 |
struct shrink_control; |
f2f7ba523 [GFS2] Make heade... |
15 |
|
cd915493f [GFS2] Change all... |
16 |
#define NO_QUOTA_CHANGE ((u32)-1) |
b3b94faa5 [GFS2] The core o... |
17 |
|
9ac1b4d9b GFS2: Move gfs2_r... |
18 19 |
extern int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid); extern void gfs2_quota_unhold(struct gfs2_inode *ip); |
b3b94faa5 [GFS2] The core o... |
20 |
|
9ac1b4d9b GFS2: Move gfs2_r... |
21 22 |
extern int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid); extern void gfs2_quota_unlock(struct gfs2_inode *ip); |
b3b94faa5 [GFS2] The core o... |
23 |
|
9ac1b4d9b GFS2: Move gfs2_r... |
24 25 26 |
extern int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid); extern void gfs2_quota_change(struct gfs2_inode *ip, s64 change, u32 uid, u32 gid); |
b3b94faa5 [GFS2] The core o... |
27 |
|
5fb324ad2 quota: move code ... |
28 |
extern int gfs2_quota_sync(struct super_block *sb, int type, int wait); |
9ac1b4d9b GFS2: Move gfs2_r... |
29 |
extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id); |
b3b94faa5 [GFS2] The core o... |
30 |
|
9ac1b4d9b GFS2: Move gfs2_r... |
31 32 33 |
extern int gfs2_quota_init(struct gfs2_sbd *sdp); extern void gfs2_quota_cleanup(struct gfs2_sbd *sdp); extern int gfs2_quotad(void *data); |
b3b94faa5 [GFS2] The core o... |
34 |
|
3d3c10f2c GFS2: Improve sta... |
35 |
extern void gfs2_wake_up_statfs(struct gfs2_sbd *sdp); |
d82661d96 [GFS2] Streamline... |
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
static inline int gfs2_quota_lock_check(struct gfs2_inode *ip) { struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); int ret; if (sdp->sd_args.ar_quota == GFS2_QUOTA_OFF) return 0; ret = gfs2_quota_lock(ip, NO_QUOTA_CHANGE, NO_QUOTA_CHANGE); if (ret) return ret; if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON) return 0; ret = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid); if (ret) gfs2_quota_unlock(ip); return ret; } |
1495f230f vmscan: change sh... |
52 53 |
extern int gfs2_shrink_qd_memory(struct shrinker *shrink, struct shrink_control *sc); |
cc632e7f9 GFS2: Hook gfs2_q... |
54 |
extern const struct quotactl_ops gfs2_quotactl_ops; |
0a7ab79c5 GFS2: change gfs2... |
55 |
|
b3b94faa5 [GFS2] The core o... |
56 |
#endif /* __QUOTA_DOT_H__ */ |