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)
commit98bc3149fad639c8f50c7110b961a2a2fe085eed
tree76b102e79a9adde87c4e93f475db643567c393da
parent4e69b598f6cfb0940b75abf7e179d6020e94ad1e
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