commit | 98bc3149fad639c8f50c7110b961a2a2fe085eed | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Tue Mar 22 11:00:46 2011 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Fri Mar 25 19:08:18 2011 -0400 |
tree | 76b102e79a9adde87c4e93f475db643567c393da | |
parent | 4e69b598f6cfb0940b75abf7e179d6020e94ad1e [diff] |
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>