aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorWang Shilong <[email protected]>2014-04-01 18:01:42 +0800
committerChris Mason <[email protected]>2014-04-07 09:08:48 -0700
commit68bb462d42a963169bf7acbe106aae08c17129a5 (patch)
tree91cfa510c89128399c87371f9ffc974654c24a46 /tools/perf/scripts/python/event_analyzing_sample.py
parentc50d3e71c3d0378bcc9e116f48dab4148854a7bb (diff)
Btrfs: don't compress for a small write
To compress a small file range(<=blocksize) that is not an inline extent can not save disk space at all. skip it can save us some cpu time. This patch can also fix wrong setting nocompression flag for inode, say a case when @total_in is 4096, and then we get @total_compressed 52,because we do aligment to page cache size firstly, and then we get into conclusion @total_in=@total_compressed thus we will clear this inode's compression flag. An exception comes from inserting inline extent failure but we still have @total_compressed < @total_in,so we will still reset inode's flag, this is ok, because we don't have good compression effect. Signed-off-by: Wang Shilong <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions