All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/4] GFS2: Reduce size of incore inode
Date: Fri, 30 Oct 2015 10:34:08 +0000	[thread overview]
Message-ID: <563347A0.3060401@redhat.com> (raw)
In-Reply-To: <1446042009-30312-2-git-send-email-rpeterso@redhat.com>

Hi,

On 28/10/15 14:20, Bob Peterson wrote:
[snip]
> diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
> index 121ed08..76c9c77 100644
> --- a/fs/gfs2/incore.h
> +++ b/fs/gfs2/incore.h
> @@ -259,12 +259,12 @@ struct gfs2_holder {
>   
>   	struct gfs2_glock *gh_gl;
>   	struct pid *gh_owner_pid;
> -	unsigned int gh_state;
> -	unsigned gh_flags;
>   
>   	int gh_error;
>   	unsigned long gh_iflags; /* HIF_... */
>   	unsigned long gh_ip;
> +	u16 gh_flags;
> +	u8 gh_state;
>   };
>   
Is this really much smaller after the change? Looks like it is probably 
not packed correctly and there is likely to be a hole in it, depending 
on where the 64 bit boundaries lie. Probably better off making the 
gh_state and gh_flags 16 bit, but leaving them where they are in the 
structure,

Steve.

>   /* Number of quota types we support */
> @@ -289,10 +289,9 @@ struct gfs2_blkreserv {
>   	u32 rs_free;                  /* how many blocks are still free */
>   	u64 rs_inum;                  /* Inode number for reservation */
>   
> -	/* ancillary quota stuff */
>   	struct gfs2_quota_data *rs_qa_qd[2 * GFS2_MAXQUOTAS];
>   	struct gfs2_holder rs_qa_qd_ghs[2 * GFS2_MAXQUOTAS];
> -	unsigned int rs_qa_qd_num;
> +	u32 rs_qa_qd_num;
>   };
Again, does this really save any space?

Steve.



  reply	other threads:[~2015-10-30 10:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28 14:20 [Cluster-devel] [PATCH 0/4] Fix erroneous ETXTBSY problems with GFS2 Bob Peterson
2015-10-28 14:20 ` [Cluster-devel] [PATCH 1/4] GFS2: Reduce size of incore inode Bob Peterson
2015-10-30 10:34   ` Steven Whitehouse [this message]
2015-10-28 14:20 ` [Cluster-devel] [PATCH 2/4] GFS2: Reduce inode size by using 32-bit i_generation Bob Peterson
2015-10-29 17:21   ` Andrew Price
2015-10-29 18:39     ` Bob Peterson
2015-10-29 18:43       ` [Cluster-devel] [GFS2 PATCH 2/4 v2] " Bob Peterson
2015-10-30 10:42   ` [Cluster-devel] [PATCH 2/4] " Steven Whitehouse
2015-10-28 14:20 ` [Cluster-devel] [PATCH 3/4] GFS2: Extract quota data from reservations structure (revert 5407e24) Bob Peterson
2015-10-28 14:20 ` [Cluster-devel] [PATCH 4/4] GFS2: Make rgrp reservations part of the gfs2_inode structure Bob Peterson
2015-10-29 17:21 ` [Cluster-devel] [PATCH 0/4] Fix erroneous ETXTBSY problems with GFS2 Andrew Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=563347A0.3060401@redhat.com \
    --to=swhiteho@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.