From: xiubli@redhat.com
To: idryomov@gmail.com, ceph-devel@vger.kernel.org
Cc: jlayton@kernel.org, vshankar@redhat.com, mchangir@redhat.com,
Xiubo Li <xiubli@redhat.com>,
Patrick Donnelly <pdonnell@redhat.com>
Subject: [PATCH v4 4/6] ceph: move mdsmap.h to fs/ceph/
Date: Mon, 19 Jun 2023 15:14:36 +0800 [thread overview]
Message-ID: <20230619071438.7000-5-xiubli@redhat.com> (raw)
In-Reply-To: <20230619071438.7000-1-xiubli@redhat.com>
From: Xiubo Li <xiubli@redhat.com>
The mdsmap.h is only used by the kcephfs and move it to fs/ceph/
URL: https://tracker.ceph.com/issues/61590
Cc: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
---
fs/ceph/mds_client.h | 2 +-
fs/ceph/mdsmap.c | 2 +-
{include/linux => fs}/ceph/mdsmap.h | 0
3 files changed, 2 insertions(+), 2 deletions(-)
rename {include/linux => fs}/ceph/mdsmap.h (100%)
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h
index 20bcf8d5322e..5d02c8c582fd 100644
--- a/fs/ceph/mds_client.h
+++ b/fs/ceph/mds_client.h
@@ -14,9 +14,9 @@
#include <linux/ceph/types.h>
#include <linux/ceph/messenger.h>
-#include <linux/ceph/mdsmap.h>
#include <linux/ceph/auth.h>
+#include "mdsmap.h"
#include "metric.h"
#include "super.h"
diff --git a/fs/ceph/mdsmap.c b/fs/ceph/mdsmap.c
index 6cbec7aed5a0..d1bc81eecc18 100644
--- a/fs/ceph/mdsmap.c
+++ b/fs/ceph/mdsmap.c
@@ -7,11 +7,11 @@
#include <linux/slab.h>
#include <linux/types.h>
-#include <linux/ceph/mdsmap.h>
#include <linux/ceph/messenger.h>
#include <linux/ceph/decode.h>
#include "super.h"
+#include "mdsmap.h"
#define CEPH_MDS_IS_READY(i, ignore_laggy) \
(m->m_info[i].state > 0 && ignore_laggy ? true : !m->m_info[i].laggy)
diff --git a/include/linux/ceph/mdsmap.h b/fs/ceph/mdsmap.h
similarity index 100%
rename from include/linux/ceph/mdsmap.h
rename to fs/ceph/mdsmap.h
--
2.40.1
next prev parent reply other threads:[~2023-06-19 7:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 7:14 [PATCH v4 0/6] ceph: print the client global id for debug logs xiubli
2023-06-19 7:14 ` [PATCH v4 1/6] ceph: add the *_client debug macros support xiubli
2023-09-04 9:27 ` Milind Changire
2023-06-19 7:14 ` [PATCH v4 2/6] ceph: pass the mdsc to several helpers xiubli
2023-09-04 9:28 ` Milind Changire
2023-06-19 7:14 ` [PATCH v4 3/6] ceph: rename _to_client() to _to_fs_client() xiubli
2023-09-04 9:28 ` Milind Changire
2023-06-19 7:14 ` xiubli [this message]
2023-09-04 9:29 ` [PATCH v4 4/6] ceph: move mdsmap.h to fs/ceph/ Milind Changire
2023-06-19 7:14 ` [PATCH v4 5/6] ceph: add ceph_inode_to_client() helper support xiubli
2023-09-04 9:30 ` Milind Changire
2023-06-19 7:20 ` [PATCH v4 0/6] ceph: print the client global id for debug logs Xiubo Li
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=20230619071438.7000-5-xiubli@redhat.com \
--to=xiubli@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=idryomov@gmail.com \
--cc=jlayton@kernel.org \
--cc=mchangir@redhat.com \
--cc=pdonnell@redhat.com \
--cc=vshankar@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 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).