nilfs2: move definition of struct nilfs_btree_node
PATCH v2 1/1 nilfs2: move definition of struct nilfs_btree_node
Hi,
This is a trivial patch to expose struct nilfs_fs_btree_node. The struct sould be exposed outside of kernel, for it is disk format.
Signed-off-by Jiro SEKIBA <[email protected]>
--- fs/nilfs2/btree.h | 22 ---------------------- include/linux/nilfs2_fs.h | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 22 deletions(-)
fs/nilfs2/btree.h +0 -22
@@ -34,28 +34,6 @@ struct nilfs_btree;struct nilfs_btree_path ;/** -* struct nilfs_btree_node - B-tree node -* @bn_flags: flags -* @bn_level: level -* @bn_nchildren: number of children -* @bn_pad: padding -*/ -struct nilfs_btree_node { -__u8 bn_flags; -__u8 bn_level; -__le16 bn_nchildren; -__le32 bn_pad; -}; - -/* flags */ -#define NILFS_BTREE_NODE_ROOT 0x01 - -/* level */ -#define NILFS_BTREE_LEVEL_DATA 0 -#define NILFS_BTREE_LEVEL_NODE_MIN (NILFS_BTREE_LEVEL_DATA + 1) -#define NILFS_BTREE_LEVEL_MAX 14 - -/** * struct nilfs_btree - B-tree structure * @bt_bmap: bmap base structure */
include/linux/nilfs2_fs.h +22 -0
@@ -403,6 +403,28 @@ struct nilfs_segment_summary {#define NILFS_SS_GC 0x0010/* segment written for cleaner operation */ /** +* struct nilfs_btree_node - B-tree node +* @bn_flags: flags +* @bn_level: level +* @bn_nchildren: number of children +* @bn_pad: padding +*/ +struct nilfs_btree_node { +__u8 bn_flags; +__u8 bn_level; +__le16 bn_nchildren; +__le32 bn_pad; +}; + +/* flags */ +#define NILFS_BTREE_NODE_ROOT 0x01 + +/* level */ +#define NILFS_BTREE_LEVEL_DATA 0 +#define NILFS_BTREE_LEVEL_NODE_MIN (NILFS_BTREE_LEVEL_DATA + 1) +#define NILFS_BTREE_LEVEL_MAX 14 + +/** * struct nilfs_palloc_group_desc - block group descriptor * @pg_nfrees: number of free entries in block group */
Signature · 1 line
1.5.6.5
A message that is not in the archive (sent off-list or not yet received): 87my2wggak.wl%[email protected]
Ryusuke Konishi
AppliedHi,
Quoted 80 lines · Jiro SEKIBA
Hi,
This is a trivial patch to expose struct
nilfs_fs_btree_node. The struct sould be exposed outside of kernel, for it is disk format.Signed-off-by Jiro SEKIBA <[email protected]>--- fs/nilfs2/btree.h | 22 ---------------------- include/linux/nilfs2_fs.h | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 22 deletions(-)fs/nilfs2/btree.h +0
-22@@ -34,28 +34,6 @@ struct nilfs_btree;struct nilfs_btree_path ;/** -* struct nilfs_btree_node - B-tree node -* @bn_flags: flags -* @bn_level: level -* @bn_nchildren: number of children -* @bn_pad: padding -*/ -struct nilfs_btree_node { -__u8 bn_flags; -__u8 bn_level; -__le16 bn_nchildren; -__le32 bn_pad; -}; - -/* flags */ -#define NILFS_BTREE_NODE_ROOT 0x01 - -/* level */ -#define NILFS_BTREE_LEVEL_DATA 0 -#define NILFS_BTREE_LEVEL_NODE_MIN (NILFS_BTREE_LEVEL_DATA + 1) -#define NILFS_BTREE_LEVEL_MAX 14 - -/** * struct nilfs_btree - B-tree structure * @bt_bmap: bmap base structure */ include/linux/nilfs2_fs.h +22
-0@@ -403,6 +403,28 @@ struct nilfs_segment_summary {#define NILFS_SS_GC 0x0010/* segment written for cleaner operation */ /** +* struct nilfs_btree_node - B-tree node +* @bn_flags: flags +* @bn_level: level +* @bn_nchildren: number of children +* @bn_pad: padding +*/ +struct nilfs_btree_node { +__u8 bn_flags; +__u8 bn_level; +__le16 bn_nchildren; +__le32 bn_pad; +}; + +/* flags */ +#define NILFS_BTREE_NODE_ROOT 0x01 + +/* level */ +#define NILFS_BTREE_LEVEL_DATA 0 +#define NILFS_BTREE_LEVEL_NODE_MIN (NILFS_BTREE_LEVEL_DATA + 1) +#define NILFS_BTREE_LEVEL_MAX 14 + +/** * struct nilfs_palloc_group_desc - block group descriptor * @pg_nfrees: number of free entries in block group */ Signature · 1 line
1.5.6.5
Applied. Thank you!
Ryusuke Konishi