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 7e9fc2aa0SSteven Whitehouse * of the GNU General Public License version 2. 8b3b94faaSDavid Teigland */ 9b3b94faaSDavid Teigland 10b3b94faaSDavid Teigland #ifndef __QUOTA_DOT_H__ 11b3b94faaSDavid Teigland #define __QUOTA_DOT_H__ 12b3b94faaSDavid Teigland 13f2f7ba52SSteven Whitehouse struct gfs2_inode; 14f2f7ba52SSteven Whitehouse struct gfs2_sbd; 15f2f7ba52SSteven Whitehouse 16cd915493SSteven Whitehouse #define NO_QUOTA_CHANGE ((u32)-1) 17b3b94faaSDavid Teigland 18cd915493SSteven Whitehouse int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid); 19b3b94faaSDavid Teigland void gfs2_quota_unhold(struct gfs2_inode *ip); 20b3b94faaSDavid Teigland 21cd915493SSteven Whitehouse int gfs2_quota_lock(struct gfs2_inode *ip, u32 uid, u32 gid); 22b3b94faaSDavid Teigland void gfs2_quota_unlock(struct gfs2_inode *ip); 23b3b94faaSDavid Teigland 24cd915493SSteven Whitehouse int gfs2_quota_check(struct gfs2_inode *ip, u32 uid, u32 gid); 25cd915493SSteven Whitehouse void gfs2_quota_change(struct gfs2_inode *ip, s64 change, 26cd915493SSteven Whitehouse u32 uid, u32 gid); 27b3b94faaSDavid Teigland 28b3b94faaSDavid Teigland int gfs2_quota_sync(struct gfs2_sbd *sdp); 29cd915493SSteven Whitehouse int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id); 30b3b94faaSDavid Teigland 31b3b94faaSDavid Teigland int gfs2_quota_init(struct gfs2_sbd *sdp); 32b3b94faaSDavid Teigland void gfs2_quota_scan(struct gfs2_sbd *sdp); 33b3b94faaSDavid Teigland void gfs2_quota_cleanup(struct gfs2_sbd *sdp); 34b3b94faaSDavid Teigland 35b3b94faaSDavid Teigland #endif /* __QUOTA_DOT_H__ */ 36