summaryrefslogtreecommitdiffstats
path: root/fs/hugetlbfs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2013-10-02 15:42:45 +0200
committerSteven Whitehouse <swhiteho@redhat.com>2013-10-02 15:42:45 +0200
commit9e07f2cb3d7a93f4b1b18fc6e4dd6911dcba2442 (patch)
treece2de09b90926f81d7e118f2a14ec3dc2dbc12be /fs/hugetlbfs
parentGFS2: Add allocation parameters structure (diff)
downloadlinux-9e07f2cb3d7a93f4b1b18fc6e4dd6911dcba2442.tar.xz
linux-9e07f2cb3d7a93f4b1b18fc6e4dd6911dcba2442.zip
GFS2: Speed up starting point selection for block allocation
When setting the starting point for block allocation, there were calls to both gfs2_rbm_to_block() and gfs2_rbm_from_block() in the common case of there being an active reservation. The gfs2_rbm_from_block() function can be quite slow, and since the two conversions were effectively a no-op, it makes sense to avoid them entirely in this case. There is no functional change here, but the code should be a bit more efficient after this patch. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/hugetlbfs')
0 files changed, 0 insertions, 0 deletions