diff options
author | Jan Kara <jack@suse.cz> | 2010-05-24 12:39:49 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-27 17:39:36 +0200 |
commit | 4dea496974e41814cc715db0268226c6f71f7c8a (patch) | |
tree | 84ab5468169b41176a56ee65b6f05bfa881057ea /fs | |
parent | reiserfs: Fix resuming of quotas on remount read-write (diff) | |
download | linux-4dea496974e41814cc715db0268226c6f71f7c8a.tar.xz linux-4dea496974e41814cc715db0268226c6f71f7c8a.zip |
quota: Fixup dquot_transfer
Commit bc8e5f07392f05c47c8bdeff4f7098db440d065c had a typo which caused
quota miscomputation when changing owner group of a file. Linus will hate
me.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/quota/dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 1914a2f6c84c..1ff91314b8a0 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -1812,7 +1812,7 @@ int dquot_transfer(struct inode *inode, struct iattr *iattr) if (iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid) transfer_to[USRQUOTA] = dqget(sb, iattr->ia_uid, USRQUOTA); if (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid) - transfer_to[GRPQUOTA] = dqget(sb, iattr->ia_uid, GRPQUOTA); + transfer_to[GRPQUOTA] = dqget(sb, iattr->ia_gid, GRPQUOTA); ret = __dquot_transfer(inode, transfer_to); dqput_all(transfer_to); |