-
- Downloads
[GFS2] Reduce inode size by moving i_alloc out of line
It is possible to reduce the size of GFS2 inodes by taking the i_alloc
structure out of the gfs2_inode. This patch allocates the i_alloc
structure whenever its needed, and frees it afterward. This decreases
the amount of low memory we use at the expense of requiring a memory
allocation for each page or partial page that we write. A quick test
with postmark shows that the overhead is not measurable and I also note
that OCFS2 use the same approach.
In the future I'd like to solve the problem by shrinking down the size
of the members of the i_alloc structure, but for now, this reduces the
immediate problem of using too much low-memory on x86 and doesn't add
too much overhead.
Signed-off-by:
Steven Whitehouse <swhiteho@redhat.com>
Showing
- fs/gfs2/bmap.c 2 additions, 2 deletionsfs/gfs2/bmap.c
- fs/gfs2/dir.c 2 additions, 2 deletionsfs/gfs2/dir.c
- fs/gfs2/eattr.c 1 addition, 1 deletionfs/gfs2/eattr.c
- fs/gfs2/incore.h 1 addition, 1 deletionfs/gfs2/incore.h
- fs/gfs2/inode.c 4 additions, 3 deletionsfs/gfs2/inode.c
- fs/gfs2/main.c 1 addition, 0 deletionsfs/gfs2/main.c
- fs/gfs2/ops_address.c 2 additions, 3 deletionsfs/gfs2/ops_address.c
- fs/gfs2/ops_file.c 4 additions, 2 deletionsfs/gfs2/ops_file.c
- fs/gfs2/ops_inode.c 4 additions, 4 deletionsfs/gfs2/ops_inode.c
- fs/gfs2/quota.c 6 additions, 6 deletionsfs/gfs2/quota.c
- fs/gfs2/rgrp.c 9 additions, 11 deletionsfs/gfs2/rgrp.c
- fs/gfs2/rgrp.h 3 additions, 1 deletionfs/gfs2/rgrp.h
Loading
Please register or sign in to comment