diff options
author | Nathan Scott <nathans@sgi.com> | 2005-11-02 00:31:41 +0100 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-02 00:31:41 +0100 |
commit | c310ab6c071a688e5291028972d1ae8314f67536 (patch) | |
tree | 7ee30ba83f67139e5353ae45b8e18d9097198009 /fs/xfs/quota/xfs_dquot.c | |
parent | [XFS] Add a comment about the use of XFS_SIZE_TOKEN_WANT. (diff) | |
download | linux-c310ab6c071a688e5291028972d1ae8314f67536.tar.xz linux-c310ab6c071a688e5291028972d1ae8314f67536.zip |
[XFS] Fix signedness issues in dquot ID handling, allowing uids/gids above
MAXINT
SGI-PV: 942528
SGI-Modid: xfs-linux:xfs-kern:23828a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/quota/xfs_dquot.c')
-rw-r--r-- | fs/xfs/quota/xfs_dquot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c index e2e8d35fa4d0..9987977a4927 100644 --- a/fs/xfs/quota/xfs_dquot.c +++ b/fs/xfs/quota/xfs_dquot.c @@ -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); |