summaryrefslogtreecommitdiff
path: root/fs/gfs2/trans.c
diff options
context:
space:
mode:
authorAbhi Das <adas@redhat.com>2015-03-18 20:05:15 +0300
committerBob Peterson <rpeterso@redhat.com>2015-03-18 20:48:02 +0300
commitd9be0cda774e7fe36651b04a89a42e9e354e43c3 (patch)
tree4ead90ff02660236e445fe0666f5c57e39761e67 /fs/gfs2/trans.c
parent25435e5ed611f310dda889940cbc4c45b3ecd9ec (diff)
downloadlinux-d9be0cda774e7fe36651b04a89a42e9e354e43c3.tar.xz
gfs2: allow fallocate to max out quotas/fs efficiently
We can quickly get an estimate of how many blocks are available for allocation restricted by quota and fs size respectively, using the ap->allowed field in the gfs2_alloc_parms structure. gfs2_quota_check() and gfs2_inplace_reserve() provide these values. Once we have the total number of blocks available to us, we can compute how many bytes of data can be written using those blocks instead of guessing inefficiently. Signed-off-by: Abhi Das <adas@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com> Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/trans.c')
0 files changed, 0 insertions, 0 deletions