On Sat, 2009-01-03 at 23:33 +0800, Liu Hui wrote: > + /* Tell the block device(s) that the sectors can be discarded */ > + ret = btrfs_map_block(&root->fs_info->mapping_tree, READ, > + bytenr, &map_length, &multi, 0); Shouldn't that READ be a WRITE, if we want to discard every stripe of a RAID1 rather than only one of them? -- David Woodhouse Open Source Technology Centre David.Woodhouse@xxxxxxxxx Intel Corporation -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
