]> git.karo-electronics.de Git - mv-sheeva.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)
commita555f810af6d63ea5960abaed88e150ad95c3011
tree643fd3e94c352dc0006ff9333de8b7b4dc2b8785
parent11dfe35a0108097f2df1f042c485fa7f758c2cdf
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