Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12187
b: refs/heads/master
c: c310ab6
h: refs/heads/master
i:
  12185: 7fb1afc
  12183: 20b476f
v: v3
  • Loading branch information
Nathan Scott committed Nov 1, 2005
1 parent d5734fa commit 714311d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30dab21abbca37636091a6d02e94dbcd6e07b530
refs/heads/master: c310ab6c071a688e5291028972d1ae8314f67536
3 changes: 1 addition & 2 deletions trunk/fs/xfs/quota/xfs_dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,7 @@ xfs_qm_dqtobp(
*/
if (dqp->q_blkno == (xfs_daddr_t) 0) {
/* We use the id as an index */
dqp->q_fileoffset = (xfs_fileoff_t) ((uint)id /
XFS_QM_DQPERBLK(mp));
dqp->q_fileoffset = (xfs_fileoff_t)id / XFS_QM_DQPERBLK(mp);
nmaps = 1;
quotip = XFS_DQ_TO_QIP(dqp);
xfs_ilock(quotip, XFS_ILOCK_SHARED);
Expand Down
9 changes: 2 additions & 7 deletions trunk/fs/xfs/quota/xfs_qm_syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ xfs_qm_quotactl(
vfsp = bhvtovfs(bdp);
mp = XFS_VFSTOM(vfsp);

if (addr == NULL && cmd != Q_SYNC)
return XFS_ERROR(EINVAL);
if (id < 0 && cmd != Q_SYNC)
return XFS_ERROR(EINVAL);
ASSERT(addr != NULL);

/*
* The following commands are valid even when quotaoff.
Expand All @@ -122,7 +119,7 @@ xfs_qm_quotactl(
/*
* Truncate quota files. quota must be off.
*/
if (XFS_IS_QUOTA_ON(mp) || addr == NULL)
if (XFS_IS_QUOTA_ON(mp))
return XFS_ERROR(EINVAL);
if (vfsp->vfs_flag & VFS_RDONLY)
return XFS_ERROR(EROFS);
Expand All @@ -140,8 +137,6 @@ xfs_qm_quotactl(
* QUOTAON - enabling quota enforcement.
* Quota accounting must be turned on at mount time.
*/
if (addr == NULL)
return XFS_ERROR(EINVAL);
if (vfsp->vfs_flag & VFS_RDONLY)
return XFS_ERROR(EROFS);
return (xfs_qm_scall_quotaon(mp,
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/xfs/xfs_quota.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* uid_t and gid_t are hard-coded to 32 bits in the inode.
* Hence, an 'id' in a dquot is 32 bits..
*/
typedef __int32_t xfs_dqid_t;
typedef __uint32_t xfs_dqid_t;

/*
* Eventhough users may not have quota limits occupying all 64-bits,
Expand Down

0 comments on commit 714311d

Please sign in to comment.