search for: btrfs_block_rsv_refill

Displaying 1 result from an estimated 1 matches for "btrfs_block_rsv_refill".

2012 Jan 05
4
[RFC][PATCH 3/3] Btrfs: improve truncation of btrfs
...s of the file will * end up with a zero length file after a crash. */ - if (inode->i_size == 0 && BTRFS_I(inode)->ordered_data_close) + if (newsize == 0 && BTRFS_I(inode)->ordered_data_close) btrfs_add_ordered_operation(trans, root, inode); while (1) { - ret = btrfs_block_rsv_refill(root, rsv, min_size); - if (ret) { - /* - * This can only happen with the original transaction we - * started above, every other time we shouldn''t have a - * transaction started yet. - */ - if (ret == -EAGAIN) - goto end_trans; - err = ret; - break; - } - if (!t...