mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: balajirrao@gmail.com, dwmw2@infradead.org, chris.mason@oracle.com
Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH] BTRFS: Transpose parent_objectid and parent_gen in struct btrfs_fid
Date: Wed, 18 Mar 2009 16:16:26 +0000	[thread overview]
Message-ID: <20090318161626.16521.91662.stgit@warthog.procyon.org.uk> (raw)

Transpose parent_objectid and parent_gen in struct btrfs_fid so that gen and
parent_gen (both u32) are adjacent, thus packing nicely between the u64
members.

This would seem to be reasonable as the parent generation number is always
used if the parent objectid is.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 fs/btrfs/export.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/fs/btrfs/export.h b/fs/btrfs/export.h
index 074348a..319cc6e 100644
--- a/fs/btrfs/export.h
+++ b/fs/btrfs/export.h
@@ -10,8 +10,8 @@ struct btrfs_fid {
 	u64 root_objectid;
 	u32 gen;
 
-	u64 parent_objectid;
 	u32 parent_gen;
+	u64 parent_objectid;
 
 	u64 parent_root_objectid;
 } __attribute__ ((packed));


             reply	other threads:[~2009-03-18 16:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-18 16:16 David Howells [this message]
2009-03-18 17:00 ` Chris Mason
2009-03-18 17:05 ` David Howells
2009-03-18 17:21   ` David Woodhouse
2009-03-18 17:38   ` David Howells
2009-03-18 17:46     ` David Woodhouse

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=20090318161626.16521.91662.stgit@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=balajirrao@gmail.com \
    --cc=chris.mason@oracle.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®