]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: eliminate rs_inum and reduce the size of gfs2 inodes
authorBob Peterson <rpeterso@redhat.com>
Wed, 13 Jun 2018 13:52:47 +0000 (08:52 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 21 Jun 2018 12:39:31 +0000 (07:39 -0500)
commit1c60796ce3795d3599fc59a8366f544131e2c70c
treeac348f7630b1f2103fd679609f49bc73072047ce
parent99dc67cd503fc732e5bc5a987399bb5392d80443
gfs2: eliminate rs_inum and reduce the size of gfs2 inodes

Before this patch, block reservations kept track of the inode
number. At one point, that was a valid thing to do. However, since
we made the reservation a part of the inode (rather than a pointer
to a separate allocated object) the reservation can determine the
inode number by using container_of. This saves us a little memory
in our inode.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/trace_gfs2.h