Re: What's the "prepare_discard_fn" supposed to do?

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

 



Hi David,

David Woodhouse wrote:
It's intended to prepare the command which will be sent to the device,
much like the prepare_flush_fn does. See sd_prepare_flush() in
drivers/scsi/sd.c for an example (all the devices we've hooked up for
discard in Linux so far are virtual ones, so they don't make good
examples). I do have a real ATA drive with TRIM protocol support on its
way to me though, so I'll be looking at that some time soon.

Sorry for my ignorance, but why "discard" is used in hard drive? What
may it improve? I've always been thinking it is only useful for SSD and
other FTL-enabled beasts.

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux