summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2016-03-25 20:25:49 +0300
committerDavid Sterba <dsterba@suse.com>2016-07-07 19:45:53 +0300
commit48c3d480e4f746edb0bd3b84b4bd987ef8728560 (patch)
treef02d97f7813a1acd704f03406306b150f0d1a019 /tools/perf/scripts/python/export-to-postgresql.py
parent25d609f86d6808eb1f0e8a6cafc3edb4a2b5ae35 (diff)
downloadlinux-48c3d480e4f746edb0bd3b84b4bd987ef8728560.tar.xz
Btrfs: always reserve metadata for delalloc extents
There are a few races in the metadata reservation stuff. First we add the bytes to the block_rsv well after we've set the bit on the inode saying that we have space for it and after we've reserved the bytes. So use the normal btrfs_block_rsv_add helper for this case. Secondly we can flush delalloc extents when we try to reserve space for our write, which means that we could have used up the space for the inode and we wouldn't know because we only check before the reservation. So instead make sure we are always reserving space for the inode update, and then if we don't need it release those bytes afterward. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions