diff mbox

btrfs-progs: Fix a copy-n-paste bug in btrfs_read_fs_root().

Message ID 1420622623-25668-1-git-send-email-quwenruo@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Qu Wenruo Jan. 7, 2015, 9:23 a.m. UTC
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
 disk-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Satoru Takeuchi Jan. 7, 2015, 11:49 p.m. UTC | #1
On 2015/01/07 18:23, Qu Wenruo wrote:
> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>

Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>

> ---
>   disk-io.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/disk-io.c b/disk-io.c
> index 2bf8586..b853f66 100644
> --- a/disk-io.c
> +++ b/disk-io.c
> @@ -693,7 +693,7 @@ struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info,
>   	if (location->objectid == BTRFS_CSUM_TREE_OBJECTID)
>   		return fs_info->csum_root;
>   	if (location->objectid == BTRFS_QUOTA_TREE_OBJECTID)
> -		return fs_info->csum_root;
> +		return fs_info->quota_root;
>   
>   	BUG_ON(location->objectid == BTRFS_TREE_RELOC_OBJECTID ||
>   	       location->offset != (u64)-1);
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Sterba Jan. 9, 2015, 5:48 p.m. UTC | #2
Please also mention the commit that introdued the typo, I'll do that
myself now. Thanks for catching the typo.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Qu Wenruo Jan. 12, 2015, 12:48 a.m. UTC | #3
Oh, sorry.

Thanks for the commit info.
Qu
-------- Original Message --------
Subject: Re: [PATCH] btrfs-progs: Fix a copy-n-paste bug in 
btrfs_read_fs_root().
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>
Date: 2015?01?10? 01:48
> Please also mention the commit that introdued the typo, I'll do that
> myself now. Thanks for catching the typo.

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/disk-io.c b/disk-io.c
index 2bf8586..b853f66 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -693,7 +693,7 @@  struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info,
 	if (location->objectid == BTRFS_CSUM_TREE_OBJECTID)
 		return fs_info->csum_root;
 	if (location->objectid == BTRFS_QUOTA_TREE_OBJECTID)
-		return fs_info->csum_root;
+		return fs_info->quota_root;
 
 	BUG_ON(location->objectid == BTRFS_TREE_RELOC_OBJECTID ||
 	       location->offset != (u64)-1);