summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-10-14 18:40:17 (GMT)
committerJosef Bacik <josef@redhat.com>2011-10-19 19:12:58 (GMT)
commitb24e03db0df3e9164c9649db12fecc8c2d81b0d1 (patch)
treee7742796bf98c1211babe8d1bdc464ad3e3a98a1 /fs/btrfs/inode.c
parent877da174301dde9062b915da4c8103048be49702 (diff)
downloadlinux-b24e03db0df3e9164c9649db12fecc8c2d81b0d1.tar.xz
Btrfs: release trans metadata bytes before flushing delayed refs
We started setting trans->block_rsv = NULL to allow the delayed refs flushing stuff to use the right block_rsv and then just made btrfs_trans_release_metadata() unconditionally use the trans block rsv. The problem with this is we need to reserve some space in the transaction and then migrate it to the global block rsv, so we need to be able to free that out properly. So instead just move btrfs_trans_release_metadata() before the delayed ref flushing and use trans->block_rsv for the freeing. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions