From: Jan Kara Subject: [PATCH 2/2] quota: Fixup dquot_transfer Date: Tue, 25 May 2010 16:02:24 +0200 Message-ID: <1274796144-4993-2-git-send-email-jack@suse.cz> References: <1274796144-4993-1-git-send-email-jack@suse.cz> Cc: Jan Kara To: linux-fsdevel@vger.kernel.org Return-path: Received: from cantor.suse.de ([195.135.220.2]:59507 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757499Ab0E0Px2 (ORCPT ); Thu, 27 May 2010 11:53:28 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 518B693A00 for ; Thu, 27 May 2010 17:53:27 +0200 (CEST) In-Reply-To: <1274796144-4993-1-git-send-email-jack@suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 --- fs/quota/dquot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) I plan to send this fix to Linus soon. Comments welcome. diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 1914a2f..1ff9131 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); -- 1.6.4.2