diff options
author | Miao Xie | 2013-03-28 08:08:20 +0000 |
---|---|---|
committer | Josef Bacik | 2013-03-28 09:51:30 -0400 |
commit | 39847c4d3d91f487f9ab3d083ee5d0f8419f105c (patch) | |
tree | 9de238dbe4fbe627d4b8914561827cf6b3d9c19e /fs/aio.c | |
parent | a7975026ff9ddf91ba190ae2b71699dd156395e3 (diff) |
Btrfs: fix wrong reservation of csums
We reserve the space for csums only when we write data into a file, in
the other cases, such as tree log, log replay, we don't do reservation,
so we can use the reservation of the transaction handle just for the former.
And for the latter, we should use the tree's own reservation. But the
function - btrfs_csum_file_blocks() didn't differentiate between these
two types of the cases, fix it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/aio.c')
0 files changed, 0 insertions, 0 deletions