From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chris Worley" Subject: What's the "prepare_discard_fn" supposed to do? Date: Thu, 2 Oct 2008 07:45:21 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org, dwmw2@infradead.org Return-path: Received: from mail-gx0-f16.google.com ([209.85.217.16]:33163 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753551AbYJBNpX (ORCPT ); Thu, 2 Oct 2008 09:45:23 -0400 Received: by gxk9 with SMTP id 9so1337367gxk.13 for ; Thu, 02 Oct 2008 06:45:21 -0700 (PDT) Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: In perusing the "discard-2.6" kernel at infradead.org (great job... I have a device I'm testing it on, and it's working), I'm unclear on what I'm supposed to do in the prepare_discard_fn function. It looks like, if it exists, the the discard bio gets passed to the normal handler. Otherwise, it seems to have no duties. I'm guessing it's for whatever initialization is needed for the device... but checking to be sure. Thanks, Chris