From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: sandeen@sandeen.net, darrick.wong@oracle.com
Cc: linux-xfs@vger.kernel.org
Subject: [PATCH 2/2] libfrog: move topology.[ch] to libxfs
Date: Wed, 18 Dec 2019 15:14:14 -0800 [thread overview]
Message-ID: <157671085471.190323.17808121856491080720.stgit@magnolia> (raw)
In-Reply-To: <157671084242.190323.8759111252624617622.stgit@magnolia>
From: Darrick J. Wong <darrick.wong@oracle.com>
The functions in libfrog/topology.c rely on internal libxfs symbols and
functions, so move this file from libfrog to libxfs.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
libfrog/Makefile | 2 --
libxfs/Makefile | 2 ++
libxfs/topology.c | 4 ++--
libxfs/topology.h | 6 +++---
mkfs/xfs_mkfs.c | 2 +-
repair/sb.c | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
rename libfrog/topology.c => libxfs/topology.c (99%)
rename libfrog/topology.h => libxfs/topology.h (88%)
diff --git a/libfrog/Makefile b/libfrog/Makefile
index 780600cd..426fa15f 100644
--- a/libfrog/Makefile
+++ b/libfrog/Makefile
@@ -25,7 +25,6 @@ projects.c \
ptvar.c \
radix-tree.c \
scrub.c \
-topology.c \
util.c \
workqueue.c
@@ -45,7 +44,6 @@ projects.h \
ptvar.h \
radix-tree.h \
scrub.h \
-topology.h \
workqueue.h
LSRCFILES += gen_crc32table.c
diff --git a/libxfs/Makefile b/libxfs/Makefile
index 8c681e0b..c630a965 100644
--- a/libxfs/Makefile
+++ b/libxfs/Makefile
@@ -48,6 +48,7 @@ HFILES = \
libxfs_io.h \
libxfs_api_defs.h \
init.h \
+ topology.h \
libxfs_priv.h \
xfs_dir2_priv.h
@@ -58,6 +59,7 @@ CFILES = cache.c \
logitem.c \
rdwr.c \
trans.c \
+ topology.c \
util.c \
xfs_ag.c \
xfs_ag_resv.c \
diff --git a/libfrog/topology.c b/libxfs/topology.c
similarity index 99%
rename from libfrog/topology.c
rename to libxfs/topology.c
index b1b470c9..9aca1a2b 100644
--- a/libfrog/topology.c
+++ b/libxfs/topology.c
@@ -10,8 +10,8 @@
# include <blkid/blkid.h>
#endif /* ENABLE_BLKID */
#include "xfs_multidisk.h"
-#include "topology.h"
-#include "platform.h"
+#include "libxfs/topology.h"
+#include "libfrog/platform.h"
#define TERABYTES(count, blog) ((uint64_t)(count) << (40 - (blog)))
#define GIGABYTES(count, blog) ((uint64_t)(count) << (30 - (blog)))
diff --git a/libfrog/topology.h b/libxfs/topology.h
similarity index 88%
rename from libfrog/topology.h
rename to libxfs/topology.h
index 6fde868a..1a0fe24c 100644
--- a/libfrog/topology.h
+++ b/libxfs/topology.h
@@ -4,8 +4,8 @@
* All Rights Reserved.
*/
-#ifndef __LIBFROG_TOPOLOGY_H__
-#define __LIBFROG_TOPOLOGY_H__
+#ifndef __LIBXFS_TOPOLOGY_H__
+#define __LIBXFS_TOPOLOGY_H__
/*
* Device topology information.
@@ -36,4 +36,4 @@ extern int
check_overwrite(
const char *device);
-#endif /* __LIBFROG_TOPOLOGY_H__ */
+#endif /* __LIBXFS_TOPOLOGY_H__ */
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index 606f79da..784fe6a9 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -9,7 +9,7 @@
#include "xfs_multidisk.h"
#include "libxcmd.h"
#include "libfrog/fsgeom.h"
-#include "libfrog/topology.h"
+#include "libxfs/topology.h"
#define TERABYTES(count, blog) ((uint64_t)(count) << (40 - (blog)))
#define GIGABYTES(count, blog) ((uint64_t)(count) << (30 - (blog)))
diff --git a/repair/sb.c b/repair/sb.c
index 91a36dd3..3054cef0 100644
--- a/repair/sb.c
+++ b/repair/sb.c
@@ -12,7 +12,7 @@
#include "protos.h"
#include "err_protos.h"
#include "xfs_multidisk.h"
-#include "libfrog/topology.h"
+#include "libxfs/topology.h"
#define BSIZE (1024 * 1024)
next prev parent reply other threads:[~2019-12-18 23:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-18 23:14 [PATCH 0/2] libfrog: various small fixes Darrick J. Wong
2019-12-18 23:14 ` [PATCH 1/2] libfrog: remove libxfs.h dependencies in fsgeom.c and linux.c Darrick J. Wong
2019-12-18 23:16 ` Eric Sandeen
2019-12-18 23:14 ` Darrick J. Wong [this message]
2019-12-18 23:26 ` [PATCH 2/2] libfrog: move topology.[ch] to libxfs Eric Sandeen
2019-12-19 0:12 ` Darrick J. Wong
2019-12-19 1:04 ` Eric Sandeen
2020-02-25 19:40 ` Darrick J. Wong
2020-02-26 16:55 ` Christoph Hellwig
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=157671085471.190323.17808121856491080720.stgit@magnolia \
--to=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@sandeen.net \
/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).