提交 4dea4969 编写于 作者: J Jan Kara

quota: Fixup dquot_transfer

Commit bc8e5f07 had a typo which caused
quota miscomputation when changing owner group of a file. Linus will hate
me.
Signed-off-by: NJan Kara <jack@suse.cz>
上级 f4b113ae
...@@ -1812,7 +1812,7 @@ int dquot_transfer(struct inode *inode, struct iattr *iattr) ...@@ -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) if (iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid)
transfer_to[USRQUOTA] = dqget(sb, iattr->ia_uid, USRQUOTA); transfer_to[USRQUOTA] = dqget(sb, iattr->ia_uid, USRQUOTA);
if (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid) 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); ret = __dquot_transfer(inode, transfer_to);
dqput_all(transfer_to); dqput_all(transfer_to);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册