Commit 4dea496974e41814cc715db0268226c6f71f7c8a

Authored by Jan Kara
1 parent f4b113ae6f

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1812,7 +1812,7 @@
1812 1812 if (iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid)
1813 1813 transfer_to[USRQUOTA] = dqget(sb, iattr->ia_uid, USRQUOTA);
1814 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 1817 ret = __dquot_transfer(inode, transfer_to);
1818 1818 dqput_all(transfer_to);