linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH v4 0/2] btrfs: Reformat and make btrfs_tree.h self-contained
Date: Wed, 15 Apr 2020 16:41:11 +0800	[thread overview]
Message-ID: <20200415084113.64378-1-wqu@suse.com> (raw)

Before this patch, although btrfs_tree.h contains most of needed
structures for one to read on-disk btrfs data, it still has some missing
parts:
- Missing some structures and flags
  Like btrfs_super_block, and BTRFS_INODE_* flags

- Not self-contained
  It still needs to include <linux/btrfs.h>

- Uses old/deprecated comment style

This patchset will first move on-disk structure definition to
btrfs_tree.h first, making it self-contained.

Then reformat btrfs_tree.h to make it follow current comment style.

This patchset is mostly designed for incoming projects like U-boot to
share the kernel definitions more easily.

Changelog:
v2:
- Add the reason why we move the code

v3:
- Move more flags/enum shared with ioctl to btrfs_btree.h
  This makes ioctl header to rely on btree_btree.h.
  But this makes btrfs_tree.h completely self-consistent.
  This problem is mostly exposed when syncing the header to btrfs-progs.

v4:
- Update btrfs_tree.h comment style
- Update btrfs_tree.h header define line
- Move enum btrfs_compression_type to btrfs_tree.h

Qu Wenruo (2):
  btrfs: Move on-disk structure definition to btrfs_tree.h
  btrfs: Reformat btrfs_tree.h comments

 fs/btrfs/compression.h          |   9 +-
 fs/btrfs/ctree.h                | 246 -----------
 include/uapi/linux/btrfs.h      |  74 +---
 include/uapi/linux/btrfs_tree.h | 721 +++++++++++++++++++++++---------
 4 files changed, 532 insertions(+), 518 deletions(-)

-- 
2.26.0


             reply	other threads:[~2020-04-15  8:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15  8:41 Qu Wenruo [this message]
2020-04-15  8:41 ` [PATCH v4 1/2] btrfs: Move on-disk structure definition to btrfs_tree.h Qu Wenruo
2020-04-21 11:31   ` Christoph Hellwig
2020-04-21 11:41     ` Qu Wenruo
2020-04-24 20:24       ` David Sterba
2020-04-25  7:14         ` Christoph Hellwig
2020-04-25  7:25           ` Qu Wenruo
2020-04-30  7:29             ` Qu Wenruo
2020-04-23 11:32   ` kbuild test robot
2020-04-15  8:41 ` [PATCH v4 2/2] btrfs: Reformat btrfs_tree.h comments Qu Wenruo
2020-04-16 10:20   ` David Sterba
2020-04-16 12:54   ` David Sterba

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=20200415084113.64378-1-wqu@suse.com \
    --to=wqu@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).