Re: [PATCH] btrfs: Fix partial discard on RAID1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 10 2009, David Woodhouse wrote:
> In btrfs_discard_extent() we were only discarding half of a RAID1 or
> RAID10 extent.
> 
> We should be telling btrfs_map_block() that we want to write, so it
> tells us about _all_ mirrors. If we tell it we're going to read, it'll
> only tell us about a single mirror at a time.
> 
> Signed-off-by: David Woodhouse <David.Woodhouse@xxxxxxxxx>
> ---
> Untested. Does anyone have any real devices that do TRIM yet, or do I
> need to hack up an FTL to do it again?

Get one of the OCZ vertex drives, they do trim. They use their own
opcode for it, but it's there.

-- 
Jens Axboe

--
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

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux