linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: Use bd_dev to generate index when dev_state_hashtable add items.
@ 2017-09-29  8:16 Gu Jinxiang
  2017-09-29 18:05 ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Gu Jinxiang @ 2017-09-29  8:16 UTC (permalink / raw)
  To: linux-btrfs; +Cc: hch, Gu JinXiang

From: Gu JinXiang <gujx@cn.fujitsu.com>

Fix bug of
<f8f84b2dfda5> (<btrfs: index check-integrity state hash by a dev_t>).

Signed-off-by: Gu JinXiang <gujx@cn.fujitsu.com>
---
 fs/btrfs/check-integrity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c
index 9d3854839038..86d79bc4cfb3 100644
--- a/fs/btrfs/check-integrity.c
+++ b/fs/btrfs/check-integrity.c
@@ -613,7 +613,7 @@ static void btrfsic_dev_state_hashtable_add(
 		struct btrfsic_dev_state_hashtable *h)
 {
 	const unsigned int hashval =
-	    (((unsigned int)((uintptr_t)ds->bdev)) &
+	    (((unsigned int)((uintptr_t)ds->bdev->bd_dev)) &
 	     (BTRFSIC_DEV2STATE_HASHTABLE_SIZE - 1));
 
 	list_add(&ds->collision_resolving_node, h->table + hashval);
-- 
2.13.5




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: Use bd_dev to generate index when dev_state_hashtable add items.
  2017-09-29  8:16 [PATCH] btrfs: Use bd_dev to generate index when dev_state_hashtable add items Gu Jinxiang
@ 2017-09-29 18:05 ` David Sterba
  2017-10-09  1:54   ` Gu, Jinxiang
  0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2017-09-29 18:05 UTC (permalink / raw)
  To: Gu Jinxiang; +Cc: linux-btrfs, hch

On Fri, Sep 29, 2017 at 04:16:35PM +0800, Gu Jinxiang wrote:
> From: Gu JinXiang <gujx@cn.fujitsu.com>
> 
> Fix bug of
> <f8f84b2dfda5> (<btrfs: index check-integrity state hash by a dev_t>).

Please explain what bug are you fixing.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] btrfs: Use bd_dev to generate index when dev_state_hashtable add items.
  2017-09-29 18:05 ` David Sterba
@ 2017-10-09  1:54   ` Gu, Jinxiang
  2017-10-10 12:10     ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Gu, Jinxiang @ 2017-10-09  1:54 UTC (permalink / raw)
  To: dsterba@suse.cz; +Cc: linux-btrfs@vger.kernel.org, hch@lst.de

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 883 bytes --]

Hi,
sorry for reply too late.

This patch fix for the bug descriped below.
Use MOUNT_OPTIONS="-o check_int" when run xfstest, device
Can not be mount successfully. So xfstest can not run.



> -----Original Message-----
> From: David Sterba [mailto:dsterba@suse.cz]
> Sent: Saturday, September 30, 2017 2:05 AM
> To: Gu, Jinxiang/¹Ë ½ðÏã <gujx@cn.fujitsu.com>
> Cc: linux-btrfs@vger.kernel.org; hch@lst.de
> Subject: Re: [PATCH] btrfs: Use bd_dev to generate index when dev_state_hashtable add items.
> 
> On Fri, Sep 29, 2017 at 04:16:35PM +0800, Gu Jinxiang wrote:
> > From: Gu JinXiang <gujx@cn.fujitsu.com>
> >
> > Fix bug of
> > <f8f84b2dfda5> (<btrfs: index check-integrity state hash by a dev_t>).
> 
> Please explain what bug are you fixing.
> 



ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±ý»k~ÏâžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣøm

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] btrfs: Use bd_dev to generate index when dev_state_hashtable add items.
  2017-10-09  1:54   ` Gu, Jinxiang
@ 2017-10-10 12:10     ` David Sterba
  0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2017-10-10 12:10 UTC (permalink / raw)
  To: Gu, Jinxiang; +Cc: linux-btrfs@vger.kernel.org, hch@lst.de

On Mon, Oct 09, 2017 at 01:54:14AM +0000, Gu, Jinxiang wrote:
> Hi,
> sorry for reply too late.
> 
> This patch fix for the bug descriped below.
> Use MOUNT_OPTIONS="-o check_int" when run xfstest, device
> Can not be mount successfully. So xfstest can not run.

So please update the changelog and resend. Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-10 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-29  8:16 [PATCH] btrfs: Use bd_dev to generate index when dev_state_hashtable add items Gu Jinxiang
2017-09-29 18:05 ` David Sterba
2017-10-09  1:54   ` Gu, Jinxiang
2017-10-10 12:10     ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).