aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota/xfs_qm.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-10-06 14:41:17 -0400
committerAlex Elder <aelder@sgi.com>2010-10-18 16:08:06 -0400
commit6c77b0ea1bdf85dfd48c20ceb10fd215a95c66e2 (patch)
treec2233ab16624c0ad0e80180d955c2238c2e759e1 /fs/xfs/quota/xfs_qm.c
parent78a4b0961ff241c6f23b16329db0d67e97cb86a7 (diff)
xfs: remove xfs_cred.h
We're not actually passing around credentials inside XFS for a while now, so remove all xfs_cred.h with it's cred_t typedef and all instances of it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
-rw-r--r--fs/xfs/quota/xfs_qm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c
index 121f632213a7..a3f8f95d33ea 100644
--- a/fs/xfs/quota/xfs_qm.c
+++ b/fs/xfs/quota/xfs_qm.c
@@ -55,8 +55,6 @@ uint ndquot;
55kmem_zone_t *qm_dqzone; 55kmem_zone_t *qm_dqzone;
56kmem_zone_t *qm_dqtrxzone; 56kmem_zone_t *qm_dqtrxzone;
57 57
58static cred_t xfs_zerocr;
59
60STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); 58STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int);
61STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); 59STATIC void xfs_qm_list_destroy(xfs_dqlist_t *);
62 60
@@ -1224,8 +1222,8 @@ xfs_qm_qino_alloc(
1224 return error; 1222 return error;
1225 } 1223 }
1226 1224
1227 if ((error = xfs_dir_ialloc(&tp, NULL, S_IFREG, 1, 0, 1225 error = xfs_dir_ialloc(&tp, NULL, S_IFREG, 1, 0, 0, 1, ip, &committed);
1228 &xfs_zerocr, 0, 1, ip, &committed))) { 1226 if (error) {
1229 xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES | 1227 xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES |
1230 XFS_TRANS_ABORT); 1228 XFS_TRANS_ABORT);
1231 return error; 1229 return error;
@@ -2143,7 +2141,7 @@ xfs_qm_write_sb_changes(
2143 2141
2144 2142
2145/* 2143/*
2146 * Given an inode, a uid and gid (from cred_t) make sure that we have 2144 * Given an inode, a uid, gid and prid make sure that we have
2147 * allocated relevant dquot(s) on disk, and that we won't exceed inode 2145 * allocated relevant dquot(s) on disk, and that we won't exceed inode
2148 * quotas by creating this file. 2146 * quotas by creating this file.
2149 * This also attaches dquot(s) to the given inode after locking it, 2147 * This also attaches dquot(s) to the given inode after locking it,