]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't allocate dip->csums when doing writes
authorJosef Bacik <josef@redhat.com>
Tue, 22 Mar 2011 15:00:46 +0000 (11:00 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 25 Mar 2011 23:08:18 +0000 (19:08 -0400)
commite534bd08bdfa784c5f64a3839d88fe08674d2829
tree76b102e79a9adde87c4e93f475db643567c393da
parent2b75a42cafcab2a6a063ef60a25d9093c8dbfa75
Btrfs: don't allocate dip->csums when doing writes

When doing direct writes we store the checksums in the ordered sum stuff in the
ordered extent for writing them when the write completes, so we don't even use
the dip->csums array.  So if we're writing, don't bother allocating dip->csums
since we won't use it anyway.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c