linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: dsterba@suse.cz
Cc: linux-btrfs@vger.kernel.org
Subject: [PATCH] recursive defrag cleanup
Date: Tue,  6 Dec 2016 12:39:37 +0800	[thread overview]
Message-ID: <20161206043938.3249-1-anand.jain@oracle.com> (raw)

The command,
   btrfs fi defrag -v /btrfs
 does nothing, it won't defrag the files under /btrfs as user
 may expect. The command with recursive option
   btrfs fi defrag -vr /btrfs
 would defrag all the files under /btrfs including files in
 its sub directories.

 While attempting to fix this. The patch below 1/1 provides
 a cleanup. And the actual fix is pending, as to my understanding
 of nfwt() it does not provide the list of file without
 files under its sub directories.

Anand Jain (1):
  btrfs-progs: recursive defrag cleanup remove duplicate code

 cmds-filesystem.c | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

-- 
2.10.0


             reply	other threads:[~2016-12-06  4:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-06  4:39 Anand Jain [this message]
2016-12-06  4:39 ` [PATCH] btrfs-progs: recursive defrag cleanup duplicate code Anand Jain
2016-12-12 17:11   ` David Sterba
2016-12-12 17:19 ` [PATCH] recursive defrag cleanup David Sterba
2016-12-19 11:12   ` Anand Jain
2016-12-28 10:40     ` Janos Toth F.
2017-01-03 10:16       ` Anand Jain
2017-01-03 14:21         ` Janos Toth F.
2017-01-03 16:01           ` Austin S. Hemmelgarn
2017-01-03 18:16             ` Janos Toth F.
2017-01-03 20:08               ` Austin S. Hemmelgarn
2017-01-04 22:12                 ` Janos Toth F.
2017-01-05 18:13                   ` Austin S. Hemmelgarn

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=20161206043938.3249-1-anand.jain@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).