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)
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>

No differences found