Skip to content

Commit

Permalink
quota: Fixup dquot_transfer
Browse files Browse the repository at this point in the history
Commit bc8e5f0 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>
  • Loading branch information
Jan Kara committed May 27, 2010
1 parent f4b113a commit 4dea496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/quota/dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4dea496

Please sign in to comment.