All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Shapovalov <intelfx100@gmail.com>
To: "Dušan Čolić" <dusanc@gmail.com>
Cc: reiserfs-devel <reiserfs-devel@vger.kernel.org>,
	Edward Shishkin <edward.shishkin@gmail.com>
Subject: Re: [RFC] [PATCH 0/7] reiser4: batch discard support (FITRIM ioctl): initial implementation.
Date: Sun, 17 Aug 2014 20:38:31 +0400	[thread overview]
Message-ID: <36112491.T42Uk65rmW@intelfx-laptop> (raw)
In-Reply-To: <CADW=+3=B_3pKNzph7EtfXNLbVxxn4dxsykm_RF+ayce9RsoVUQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1345 bytes --]

On Sunday 17 August 2014 at 18:37:11, Dušan Čolić wrote:	
> On Aug 17, 2014 6:18 PM, "Ivan Shapovalov" <intelfx100@gmail.com> wrote:
> >
> > On Sunday 17 August 2014 at 18:14:10, Dušan Čolić wrote:
> > > [...]
> > > >
> > > > Points I'm really uncertain of:
> > > > - grabbing fixed amount of space (new BA_SOME_SPACE flag, grabs 25% of
> > > disk space)
> > >
> > > Maybe grabbing 25% of remaining empty disk space would be better?
> >
> > What do you mean by "remaining"? 25% is recalculated on each iteration.
> > However, the reserved and allocated disk space is reclaimed at the end
> > of each iteration, so the amount really stays the same.
> >
> I meant not to grab 25% of whole partition size but grab amount of disk
> space equal to 25% of empty partition space so if we have only 10% of free
> space left we grab only 2.5% of it per iteration so to not get ENOSPACE if
> we used 25% of whole disk size and grabbed whole remaining disk space.

Ah. I've meant "25% of free disk space at the moment of discarding".
It's already done the correct way, I've just misworded it.

-- 
Ivan Shapovalov / intelfx /

> 
> > --
> > Ivan Shapovalov / intelfx /
> >
> > >
> > > > - creation of empty atoms (reiser4_create_atom())
> > > > - handling of empty atoms in commit_current_atom()
> > > >
> > > [...]

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

      parent reply	other threads:[~2014-08-17 16:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-17 15:43 [RFC] [PATCH 0/7] reiser4: batch discard support (FITRIM ioctl): initial implementation Ivan Shapovalov
2014-08-17 15:43 ` [RFC] [PATCH 1/7] reiser4: block_alloc: add BA_SOME_SPACE flag for grabbing a fixed amount of space Ivan Shapovalov
2014-08-17 15:43 ` [RFC] [PATCH 2/7] reiser4: block_alloc: add a "forward" parameter to reiser4_blocknr_hint to allocate blocks only in forward direction Ivan Shapovalov
2014-08-17 15:43 ` [RFC] [PATCH 3/7] reiser4: txnmgr: free allocated but unneeded atom in atom_begin_and_assign_to_txnh() Ivan Shapovalov
2014-08-17 15:43 ` [RFC] [PATCH 4/7] reiser4: txnmgr: add reiser4_create_atom() which creates an empty atom without capturing any nodes Ivan Shapovalov
2014-08-17 15:43 ` [RFC] [PATCH 5/7] reiser4: txnmgr: call reiser4_post_write_back_hook() for empty atoms Ivan Shapovalov
2014-08-17 15:59   ` Ivan Shapovalov
2014-08-17 16:28     ` Ivan Shapovalov
2014-08-17 15:43 ` [RFC] [PATCH 6/7] reiser4: batch discard support: add a dummy FITRIM ioctl handler for directories Ivan Shapovalov
2014-08-17 15:43 ` [RFC] [PATCH 7/7] reiser4: batch discard support: actually implement the FITRIM ioctl handler Ivan Shapovalov
     [not found] ` <CADW=+3kCURR6UB5Tm8OcJnSYV1cNcYtTmbNNrv_QCO3o1RzwDQ@mail.gmail.com>
2014-08-17 16:18   ` [RFC] [PATCH 0/7] reiser4: batch discard support (FITRIM ioctl): initial implementation Ivan Shapovalov
     [not found]     ` <CADW=+3=B_3pKNzph7EtfXNLbVxxn4dxsykm_RF+ayce9RsoVUQ@mail.gmail.com>
2014-08-17 16:38       ` Ivan Shapovalov [this message]

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=36112491.T42Uk65rmW@intelfx-laptop \
    --to=intelfx100@gmail.com \
    --cc=dusanc@gmail.com \
    --cc=edward.shishkin@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.