Btrfs: reduce stack in cow_file_range
authorChris Mason <chris.mason@oracle.com>
Fri, 13 Mar 2009 00:12:45 +0000 (20:12 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 24 Mar 2009 20:14:27 +0000 (16:14 -0400)
commit7f366cfecfc126731f8ac505d72026d691dac79a
tree72541fb0c7c891989c2d279c4e26beea2abbca73
parentb7ec40d7845bffca8bb3af2ea3f192d6257bbe21
Btrfs: reduce stack in cow_file_range

The fs/btrfs/inode.c code to run delayed allocation during writout
needed some stack usage optimization.  This is the first pass, it does
the check for compression earlier on, which allows us to do the common
(no compression) case higher up in the call chain.

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