aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/dquot.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2010-05-24 06:39:49 -0400
committerJan Kara <jack@suse.cz>2010-05-27 11:39:36 -0400
commit4dea496974e41814cc715db0268226c6f71f7c8a (patch)
tree84ab5468169b41176a56ee65b6f05bfa881057ea /fs/quota/dquot.c
parentf4b113ae6f772b3c25fdcd73d15e9d8b17c89dcc (diff)
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/quota/dquot.c')
-rw-r--r--fs/quota/dquot.c2
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)
1812 if (iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid) 1812 if (iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid)
1813 transfer_to[USRQUOTA] = dqget(sb, iattr->ia_uid, USRQUOTA); 1813 transfer_to[USRQUOTA] = dqget(sb, iattr->ia_uid, USRQUOTA);
1814 if (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid) 1814 if (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid)
1815 transfer_to[GRPQUOTA] = dqget(sb, iattr->ia_uid, GRPQUOTA); 1815 transfer_to[GRPQUOTA] = dqget(sb, iattr->ia_gid, GRPQUOTA);
1816 1816
1817 ret = __dquot_transfer(inode, transfer_to); 1817 ret = __dquot_transfer(inode, transfer_to);
1818 dqput_all(transfer_to); 1818 dqput_all(transfer_to);