GFS2: Make rgrp reservations part of the gfs2_inode structure
authorBob Peterson <rpeterso@redhat.com>
Thu, 16 Jul 2015 13:28:04 +0000 (08:28 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 14 Dec 2015 18:16:38 +0000 (12:16 -0600)
commita097dc7e24cba7980bc5e2df461a4ef228e97e59
treebfe9075d7d759fe136d540cea595dfbc4c81f361
parentb54e9a0b92d44843f6719ae22b0f6daf5b9b23b4
GFS2: Make rgrp reservations part of the gfs2_inode structure

Before this patch, multi-block reservation structures were allocated
from a special slab. This patch folds the structure into the gfs2_inode
structure. The disadvantage is that the gfs2_inode needs more memory,
even when a file is opened read-only. The advantages are: (a) we don't
need the special slab and the extra time it takes to allocate and
deallocate from it. (b) we no longer need to worry that the structure
exists for things like quota management. (c) This also allows us to
remove the calls to get_write_access and put_write_access since we
know the structure will exist.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
12 files changed:
fs/gfs2/bmap.c
fs/gfs2/file.c
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/main.c
fs/gfs2/quota.c
fs/gfs2/quota.h
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h
fs/gfs2/super.c
fs/gfs2/util.c
fs/gfs2/util.h