All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gu Jinxiang <gujx@cn.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Subject: btrfs-progs: Replace number with a exsiting macro
Date: Wed, 28 Jun 2017 14:32:38 +0800	[thread overview]
Message-ID: <20170628063239.8399-1-gujx@cn.fujitsu.com> (raw)

Use macro SZ_4K to replace number 4096 when define macro
BTRFS_SUPER_INFO_SIZE.

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
---
 disk-io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk-io.h b/disk-io.h
index dfe4cf0..5c293eb 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -24,7 +24,7 @@
 #include "sizes.h"
 
 #define BTRFS_SUPER_INFO_OFFSET SZ_64K
-#define BTRFS_SUPER_INFO_SIZE 4096
+#define BTRFS_SUPER_INFO_SIZE SZ_4K
 
 #define BTRFS_SUPER_MIRROR_MAX	 3
 #define BTRFS_SUPER_MIRROR_SHIFT 12
-- 
2.9.4




             reply	other threads:[~2017-06-28  6:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-28  6:32 Gu Jinxiang [this message]
2017-06-28  6:32 ` btrfs-progs: Add some check for sectorsize and nodesize Gu Jinxiang

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=20170628063239.8399-1-gujx@cn.fujitsu.com \
    --to=gujx@cn.fujitsu.com \
    --cc=linux-btrfs@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 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.