]> git.ipfire.org Git - people/ms/linux.git/commit - fs/gfs2/rgrp.h
GFS2: Add structure to contain rgrp, bitmap, offset tuple
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 31 Jul 2012 14:21:20 +0000 (15:21 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Sep 2012 09:46:56 +0000 (10:46 +0100)
commit4a993fb1503d11496974bd86c0b7123f63d9c8a2
tree5d5d0da84412f95995cc6d1aa95d3bca1967f82c
parent71f890f7f758f340215d48fed5223f9cce05b652
GFS2: Add structure to contain rgrp, bitmap, offset tuple

This patch introduces a new structure, gfs2_rbm, which is a
tuple of a resource group, a bitmap within the resource group
and an offset within that bitmap. This is designed to make
manipulating these sets of variables easier. There is also a
new helper function which converts this representation back
to a disk block address.

In addition, the rbtree nodes which are used for the reservations
were not being correctly initialised, which is now fixed. Also,
the tracing was not passing through the inode where it should
have been. That is mostly fixed aside from one corner case. This
needs to be revisited since there can also be a NULL rgrp in
some cases which results in the device being incorrect in the
trace.

This is intended to be the first step towards cleaning up some
of the allocation code, and some further bug fixes.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h
fs/gfs2/super.c
fs/gfs2/trace_gfs2.h