* [RFC][PATCH] btrfs: missing initialization while adding extent
@ 2009-01-13 21:41 Ingo Oeser
2009-01-16 15:21 ` Chris Mason
0 siblings, 1 reply; 2+ messages in thread
From: Ingo Oeser @ 2009-01-13 21:41 UTC (permalink / raw)
To: Chris Mason; +Cc: linux-kernel
If we race while adding an extent and successful look it
of afterwards, we don't set the em->bdev. Now we do :-)
Signed-off-by: Ingo Oeser <ioe-lkml@rameria.de>
---
fs/btrfs/disk-io.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 81a3138..25a0d15 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -118,6 +118,7 @@ static struct extent_map *btree_get_extent(struct inode *inode,
free_extent_map(em);
em = lookup_extent_mapping(em_tree, start, len);
if (em) {
+ em->bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev;
ret = 0;
} else {
em = lookup_extent_mapping(em_tree, failed_start,
--
1.5.6.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC][PATCH] btrfs: missing initialization while adding extent
2009-01-13 21:41 [RFC][PATCH] btrfs: missing initialization while adding extent Ingo Oeser
@ 2009-01-16 15:21 ` Chris Mason
0 siblings, 0 replies; 2+ messages in thread
From: Chris Mason @ 2009-01-16 15:21 UTC (permalink / raw)
To: Ingo Oeser; +Cc: linux-kernel
On Tue, 2009-01-13 at 22:41 +0100, Ingo Oeser wrote:
> If we race while adding an extent and successful look it
> of afterwards, we don't set the em->bdev. Now we do :-)
>
Thanks, queued up.
-chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-16 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13 21:41 [RFC][PATCH] btrfs: missing initialization while adding extent Ingo Oeser
2009-01-16 15:21 ` Chris Mason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®