All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Shishkin <edward.shishkin@gmail.com>
To: Ivan Shapovalov <intelfx100@gmail.com>
Cc: reiserfs-devel@vger.kernel.org
Subject: Re: [RFC] [PATCHv2 0/3] reiser4: block deallocation fixes.
Date: Mon, 08 Sep 2014 21:03:17 +0200	[thread overview]
Message-ID: <540DFD75.8090003@gmail.com> (raw)
In-Reply-To: <1410201831-11722-1-git-send-email-intelfx100@gmail.com>

Ok, I'll include this to the 3.15.2-reiser4-basic-discard-support.patch

As to 3.16: unfortunately the ancient bug, which leads to non-deleted
directories raised the head in 3.16. I don't want to release buggy stuff.
So let's work around the stable 3.15 for now..

Thanks,
Edward.


On 09/08/2014 08:43 PM, Ivan Shapovalov wrote:
> Actually, the idea of converting immediate allocations into deferred when
> discard is enabled was flawed. Deferred deallocations ignore block stage
> and additional flags, while some immediate deallocations use non-standard
> stage/flags which do not match what's done by reiser4_post_write_back_hook().
>
> While at it, I've removed specifications of block stage in deferred deallocations.
> It is not used anyway. This is first commit.
>
> Next commit does the following. Actually, most of the immediate deallocations
> do not need to be considered for discarding: these are deallocations done in
> error paths, and respective blocks are never written between their allocation
> and deallocation. Two exceptions are deallocations in wandering log code. In these
> cases, blocks are allocated, then written, then deallocated without BA_DEFER.
> I've just made these deallocations explicitly deferred, which is OK because they
> have a suitable block stage.
>
> Last commit actually removes wrong code, again making immediate deallocations
> always immediate.
>
> Ivan Shapovalov (3):
>    reiser4: deferred (BA_DEFER) deallocations do not make use of target stage.
>    reiser4: mark final deallocations in wandering log code as deferred.
>    reiser4: block_alloc: get rid of discard-related hack in reiser4_dealloc_blocks().
>
>   fs/reiser4/block_alloc.c  |  9 +++++++--
>   fs/reiser4/plugin/txmod.c | 15 +++++----------
>   fs/reiser4/wander.c       |  6 +++---
>   3 files changed, 15 insertions(+), 15 deletions(-)
>


  parent reply	other threads:[~2014-09-08 19:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-08 18:43 [RFC] [PATCHv2 0/3] reiser4: block deallocation fixes Ivan Shapovalov
2014-09-08 18:43 ` [RFC] [PATCHv2 1/3] reiser4: deferred (BA_DEFER) deallocations do not make use of target stage Ivan Shapovalov
2014-09-08 18:43 ` [RFC] [PATCHv2 2/3] reiser4: mark final deallocations in wandering log code as deferred Ivan Shapovalov
2014-09-08 18:43 ` [RFC] [PATCHv2 3/3] reiser4: block_alloc: get rid of discard-related hack in reiser4_dealloc_blocks() Ivan Shapovalov
2014-09-08 19:03 ` Edward Shishkin [this message]
2014-09-08 19:52   ` [RFC] [PATCHv2 0/3] reiser4: block deallocation fixes Ivan Shapovalov
2014-09-08 20:19     ` Edward Shishkin
2014-09-08 21:13       ` Ivan Shapovalov

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=540DFD75.8090003@gmail.com \
    --to=edward.shishkin@gmail.com \
    --cc=intelfx100@gmail.com \
    --cc=reiserfs-devel@vger.kernel.org \
    /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.