summaryrefslogtreecommitdiff
path: root/security/apparmor/sid.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-10-18 16:15:48 (GMT)
committerJosef Bacik <josef@redhat.com>2011-10-19 19:12:59 (GMT)
commit36ba022ac0b748dd543f43430b03198e899426c9 (patch)
tree3175872760ac769cde046b3ac43900fc42856bb8 /security/apparmor/sid.c
parent3880a1b46d87a6b030c31889875befc745d95dff (diff)
downloadlinux-36ba022ac0b748dd543f43430b03198e899426c9.tar.xz
Btrfs: seperate out btrfs_block_rsv_check out into 2 different functions
Currently btrfs_block_rsv_check does 2 things, it will either refill a block reserve like in the truncate or refill case, or it will check to see if there is enough space in the global reserve and possibly refill it. However because of overcommit we could be well overcommitting ourselves just to try and refill the global reserve, when really we should just be committing the transaction. So breack this out into btrfs_block_rsv_refill and btrfs_block_rsv_check. Refill will try to reserve more metadata if it can and btrfs_block_rsv_check will not, it will only tell you if the factor of the total space is still reserved. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'security/apparmor/sid.c')
0 files changed, 0 insertions, 0 deletions