Re: [PATCH 4/5] ide: Add support for TRIM

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

 



Mark Lord wrote:
Matthew Wilcox wrote:
From: David Woodhouse <David.Woodhouse@xxxxxxxxx>

Signed-off-by: David Woodhouse <David.Woodhouse@xxxxxxxxx>
[modified to reduce amount of special casing needed for discard]
Signed-off-by: Matthew Wilcox <willy@xxxxxxxxxxxxxxx>
---
..
+    task->tf.command = ATA_CMD_DSM;
+    task->tf.feature = ATA_DSM_TRIM;
+    task->tf.hob_feature = 0x00;
+    task->tf.nsect = size / 512;
+    task->tf.hob_nsect = (size / 512) >> 8;
..

Matthew (or others),

Could you perhaps explain what the purpose of the data portion
of this command is for?  The draft ATA spec I have here has mangled
text in the description -- like it's missing a crucial sentence there.

So it's not obvious exactly why this command even needs data to
be transfered.

It's a list of LBA ranges, like the NV-cache stuff recently added.

	Jeff



--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux