History log of /external/fio/lib/axmap.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
de8f6de97438d5664cd8765e60102b9109a273e2 27-Sep-2013 Anatol Pomozov <anatol.pomozov@gmail.com> Fix misspellings using 'codespell' tool

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
09d6bf0925d49458802bd9df1fc8dbf493d6cc6f 29-Mar-2013 Jens Axboe <axboe@kernel.dk> axmap: get rid of old debug ->fail_ok checking

Don't assert() on not being able to set a bit. We are returning
the number of bits we set anyway, so just have it return 0.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
0bfdf9f1b9b689e84c8f63b767afe6dc3a1bf819 29-Mar-2013 Jens Axboe <axboe@kernel.dk> axmap: fix bug with max_bs/min_bs ratio being > 64

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
53737ae01ca65f88089d3b8639df7be5b2f7ef0e 21-Feb-2013 Jens Axboe <axboe@kernel.dk> Fix problem with terminating on unaligned sizes

Three separate little issues:

- Don't round up the number of blocks needed. That means we end
up with potential partial blocks, which we can never do IO to.

- Fix an axmap bug where we only check against the specific bit
in the mask, but we really want to check for "this bit or any
higher bit". This makes axmap_next_free() behave more like it
should, instead of failing way too often.

- For the almost-full case, we can return a next available bit
that is just outside the allowed range. Punt to first-free for
that case.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
47d94b0ba87db8646f1a1d15f8b3911b3c640b30 23-Jan-2013 Jens Axboe <axboe@kernel.dk> axmap: ensure that we never return a value that is larger than the map size

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
731ef4c7c0aad1e6717e645595f3454d264b4f2f 23-Jan-2013 Jens Axboe <axboe@kernel.dk> axmap: improve axmap_find_first_free()

Add a ret variable, saves a branch on return.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
55348b420e618b1c5c50106261437fe948ef2132 23-Jan-2013 Jens Axboe <axboe@kernel.dk> axmap: fix bug in axmap_find_first_free()

If the map is completely full, we could return an invalid value
for the first free bit. So check if we actually found a match,
return failure if we didn't.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
17f0fd39d8b1f8edb420721c38302bd46254db03 21-Jan-2013 Jens Axboe <axboe@kernel.dk> axmap: clear map->first_free when we reset it

Otherwise it could be left at an invalid value. When we clear the map,
we know the first free bit is 0.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c
7ebd796f4e50c21d652e62bf1e112755b0f338a8 28-Nov-2012 Jens Axboe <axboe@kernel.dk> Rename the bitmap to axmap

It's not really a bitmap, it's a bitmap of bitmaps. Now named.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/lib/axmap.c