diff options
author | Bob Peterson <rpeterso@redhat.com> | 2018-06-13 08:52:47 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-06-21 07:39:31 -0500 |
commit | f85c10e24ab9fd8ccb6de3d6061a3110ff3581df (patch) | |
tree | ac348f7630b1f2103fd679609f49bc73072047ce /fs/gfs2/incore.h | |
parent | f0dc7f9c6dd99891611fca5849cbc4c6965b690e (diff) | |
download | lwn-f85c10e24ab9fd8ccb6de3d6061a3110ff3581df.tar.gz lwn-f85c10e24ab9fd8ccb6de3d6061a3110ff3581df.zip |
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>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index d2ad817e089f..e9cd2cc292d3 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -295,7 +295,6 @@ struct gfs2_blkreserv { struct rb_node rs_node; /* link to other block reservations */ struct gfs2_rbm rs_rbm; /* Start of reservation */ u32 rs_free; /* how many blocks are still free */ - u64 rs_inum; /* Inode number for reservation */ }; /* |