All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alasdair G Kergon <agk@redhat.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>,
	majianpeng <majianpeng@gmail.com>,
	dm-devel@redhat.com, Mike Snitzer <snitzer@redhat.com>,
	Joe Thornber <thornber@redhat.com>
Subject: Re: [PATCH] dm-cache: Add handle to contlr if	cache_create failed.
Date: Tue, 19 Mar 2013 12:20:21 +0000	[thread overview]
Message-ID: <20130319122020.GF20480@agk-dp.fab.redhat.com> (raw)
In-Reply-To: <20130319004400.GE20480@agk-dp.fab.redhat.com>

Current pahole output (offsets/size on right):

struct cache_disk_superblock {
	__le32                     csum;                 /*     0     4 */
	__le32                     flags;                /*     4     4 */
	__le64                     blocknr;              /*     8     8 */
	__u8                       uuid[16];             /*    16    16 */
	__le64                     magic;                /*    32     8 */
	__le32                     version;              /*    40     4 */
	__u8                       policy_name[16];      /*    44    16 */
	__le32                     policy_hint_size;     /*    60     4 */
	/* --- cacheline 1 boundary (64 bytes) --- */
	__u8                       metadata_space_map_root[128]; /*    64   128 */
	/* --- cacheline 3 boundary (192 bytes) --- */
	__le64                     mapping_root;         /*   192     8 */
	__le64                     hint_root;            /*   200     8 */
	__le64                     discard_root;         /*   208     8 */
	__le64                     discard_block_size;   /*   216     8 */
	__le64                     discard_nr_blocks;    /*   224     8 */
	__le32                     data_block_size;      /*   232     4 */
	__le32                     metadata_block_size;  /*   236     4 */
	__le32                     cache_blocks;         /*   240     4 */
	__le32                     compat_flags;         /*   244     4 */
	__le32                     compat_ro_flags;      /*   248     4 */
	__le32                     incompat_flags;       /*   252     4 */
	/* --- cacheline 4 boundary (256 bytes) --- */
	__le32                     read_hits;            /*   256     4 */
	__le32                     read_misses;          /*   260     4 */
	__le32                     write_hits;           /*   264     4 */
	__le32                     write_misses;         /*   268     4 */
	__le32                     policy_version[3];    /*   272    12 */

	/* size: 288, cachelines: 5, members: 25 */
	/* padding: 4 */
	/* last cacheline: 32 bytes */
};

Alasdair

      reply	other threads:[~2013-03-19 12:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-08  1:51 [PATCH] dm-cache: Add handle to contlr if cache_create failed majianpeng
2013-03-08  2:10 ` Alasdair G Kergon
2013-03-08  3:13   ` majianpeng
2013-03-18 23:13   ` Darrick J. Wong
2013-03-19  0:20     ` Alasdair G Kergon
2013-03-19  0:44     ` Alasdair G Kergon
2013-03-19 12:20       ` Alasdair G Kergon [this message]

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=20130319122020.GF20480@agk-dp.fab.redhat.com \
    --to=agk@redhat.com \
    --cc=darrick.wong@oracle.com \
    --cc=dm-devel@redhat.com \
    --cc=majianpeng@gmail.com \
    --cc=snitzer@redhat.com \
    --cc=thornber@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.