From: Artem Bityutskiy <dedekind@yandex.ru>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Chris Worley <worleys@gmail.com>, linux-fsdevel@vger.kernel.org
Subject: Re: What's the "prepare_discard_fn" supposed to do?
Date: Fri, 03 Oct 2008 09:48:39 +0300 [thread overview]
Message-ID: <48E5C047.7020004@yandex.ru> (raw)
In-Reply-To: <1222955524.3518.400.camel@macbook.infradead.org>
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-10-03 6:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-02 13:45 What's the "prepare_discard_fn" supposed to do? Chris Worley
2008-10-02 13:52 ` David Woodhouse
2008-10-03 6:48 ` Artem Bityutskiy [this message]
2008-10-03 6:53 ` David Woodhouse
2008-10-10 12:58 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48E5C047.7020004@yandex.ru \
--to=dedekind@yandex.ru \
--cc=dwmw2@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=worleys@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.