All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] BTRFS: Transpose parent_objectid and parent_gen in struct btrfs_fid
@ 2009-03-18 16:16 David Howells
  2009-03-18 17:00 ` Chris Mason
  0 siblings, 1 reply; 6+ messages in thread
From: David Howells @ 2009-03-18 16:16 UTC (permalink / raw)
  To: balajirrao, dwmw2, chris.mason; +Cc: dhowells, linux-kernel

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));


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-18 17:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-18 16:16 [PATCH] BTRFS: Transpose parent_objectid and parent_gen in struct btrfs_fid David Howells
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

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.