]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe5322fb8db9c6fdad4f7349223eb64d69f69984
treebfe9075d7d759fe136d540cea595dfbc4c81f361
parent34256f5a2c2054deb83bb0a7d680c280a95f4025
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