1b3b94faaSDavid Teigland /* 2b3b94faaSDavid Teigland * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 33a8a9a10SSteven Whitehouse * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 4b3b94faaSDavid Teigland * 5b3b94faaSDavid Teigland * This copyrighted material is made available to anyone wishing to use, 6b3b94faaSDavid Teigland * modify, copy, or redistribute it subject to the terms and conditions 7b3b94faaSDavid Teigland * of the GNU General Public License v.2. 8b3b94faaSDavid Teigland */ 9b3b94faaSDavid Teigland 10b3b94faaSDavid Teigland #ifndef __QUOTA_DOT_H__ 11b3b94faaSDavid Teigland #define __QUOTA_DOT_H__ 12b3b94faaSDavid Teigland 13b3b94faaSDavid Teigland #define NO_QUOTA_CHANGE ((uint32_t)-1) 14b3b94faaSDavid Teigland 15b3b94faaSDavid Teigland int gfs2_quota_hold(struct gfs2_inode *ip, uint32_t uid, uint32_t gid); 16b3b94faaSDavid Teigland void gfs2_quota_unhold(struct gfs2_inode *ip); 17b3b94faaSDavid Teigland 18b3b94faaSDavid Teigland int gfs2_quota_lock(struct gfs2_inode *ip, uint32_t uid, uint32_t gid); 19b3b94faaSDavid Teigland void gfs2_quota_unlock(struct gfs2_inode *ip); 20b3b94faaSDavid Teigland 21b3b94faaSDavid Teigland int gfs2_quota_check(struct gfs2_inode *ip, uint32_t uid, uint32_t gid); 22b3b94faaSDavid Teigland void gfs2_quota_change(struct gfs2_inode *ip, int64_t change, 23b3b94faaSDavid Teigland uint32_t uid, uint32_t gid); 24b3b94faaSDavid Teigland 25b3b94faaSDavid Teigland int gfs2_quota_sync(struct gfs2_sbd *sdp); 26b3b94faaSDavid Teigland int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, uint32_t id); 27b3b94faaSDavid Teigland 28b3b94faaSDavid Teigland int gfs2_quota_init(struct gfs2_sbd *sdp); 29b3b94faaSDavid Teigland void gfs2_quota_scan(struct gfs2_sbd *sdp); 30b3b94faaSDavid Teigland void gfs2_quota_cleanup(struct gfs2_sbd *sdp); 31b3b94faaSDavid Teigland 32b3b94faaSDavid Teigland #endif /* __QUOTA_DOT_H__ */ 33