linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Ignore unfragmented file checks in defrag when compression enabled
@ 2012-06-18 17:27 Andrew Mahone
  2012-06-18 17:27 ` [PATCH] btrfs: ignore " Andrew Mahone
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Mahone @ 2012-06-18 17:27 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Andrew Mahone

I noticed that btrfs fi defrag -c<method> can't be used to compress files
unless they are fragmented. This patch corrects the problem, by informing
should_defrag_range if compression is enabled, and skipping tests for extent
and adjacent extents if it is.

Andrew Mahone (1):
  btrfs: ignore unfragmented file checks in defrag when compression
    enabled

 fs/btrfs/ioctl.c |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

-- 
1.7.10.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-20  1:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 17:27 [PATCH] Ignore unfragmented file checks in defrag when compression enabled Andrew Mahone
2012-06-18 17:27 ` [PATCH] btrfs: ignore " Andrew Mahone
2012-06-19 15:01   ` Josef Bacik
2012-06-20  1:08     ` [PATCH] btrfs: ignore unfragmented file checks in defrag when compression enabled - rebased Andrew Mahone

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).