]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Use single-block reservations for directories
authorBob Peterson <rpeterso@redhat.com>
Tue, 14 May 2013 17:04:29 +0000 (13:04 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 24 May 2013 12:47:32 +0000 (13:47 +0100)
commitaf21ca8ed50f01c5278c5ded6dad6f05e8a5d2e4
treeb946cf57b899c5c056da802ad95393028140e12e
parent37f715774e2dd9ae521334dbbc3af63becd47adb
GFS2: Use single-block reservations for directories

This patch changes the multi-block allocation code, such that
directory inodes only get a single block reserved in the bitmap.
That way, the bitmaps are more tightly packed together, and there
are fewer spans of free blocks for in-use block reservations.
This means it takes less time to find a free span of blocks in the
bitmap, which speeds things up. This increases the performance of
some workloads by almost 2X. In Nate's mockup.py script (which does
(1) create dir, (2) create dir in dir, (3) create file in that dir)
the test executes in 23 steps rather than 43 steps, a 47%
performance improvement.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c