]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Add mount -o compress-force
authorChris Mason <chris.mason@oracle.com>
Thu, 28 Jan 2010 21:18:15 +0000 (16:18 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 28 Jan 2010 21:18:15 +0000 (16:18 -0500)
commitcd09e711c8cc6f23b341708c7bbd12989c9de610
tree643fd3e94c352dc0006ff9333de8b7b4dc2b8785
parentd02eeee6ca144ede79e3681f44179bd313ec7d3b
Btrfs: Add mount -o compress-force

The default btrfs mount -o compress mode will quickly back off
compressing a file if it notices that compression does not reduce the
size of the data being written.  This can save considerable CPU because
all future writes to the file go through uncompressed.

But some files are both very large and have mixed data stored in
them.  In that case, we want to add the ability to always try
compressing data before writing it.

This commit adds mount -o compress-force.  A later commit will add
a new inode flag that does the same thing.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/super.c