Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
039934b8
Commit
039934b8
authored
Nov 12, 2009
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: build cleanly without CONFIG_DEBUG_FS
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
fef320ff
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
0 deletions
+31
-0
fs/ceph/debugfs.c
fs/ceph/debugfs.c
+23
-0
fs/ceph/mds_client.h
fs/ceph/mds_client.h
+2
-0
fs/ceph/mon_client.h
fs/ceph/mon_client.h
+2
-0
fs/ceph/osd_client.h
fs/ceph/osd_client.h
+2
-0
fs/ceph/super.h
fs/ceph/super.h
+2
-0
No files found.
fs/ceph/debugfs.c
View file @
039934b8
...
...
@@ -8,6 +8,8 @@
#include "super.h"
#include "mds_client.h"
#ifdef CONFIG_DEBUG_FS
/*
* Implement /sys/kernel/debug/ceph fun
*
...
...
@@ -423,3 +425,24 @@ void ceph_debugfs_client_cleanup(struct ceph_client *client)
debugfs_remove
(
client
->
debugfs_dir
);
}
#else // CONFIG_DEBUG_FS
int
__init
ceph_debugfs_init
(
void
)
{
return
0
;
}
void
ceph_debugfs_cleanup
(
void
)
{
}
int
ceph_debugfs_client_init
(
struct
ceph_client
*
client
)
{
return
0
;
}
void
ceph_debugfs_client_cleanup
(
struct
ceph_client
*
client
)
{
}
#endif // CONFIG_DEBUG_FS
fs/ceph/mds_client.h
View file @
039934b8
...
...
@@ -256,7 +256,9 @@ struct ceph_mds_client {
spinlock_t
cap_dirty_lock
;
/* protects above items */
wait_queue_head_t
cap_flushing_wq
;
#ifdef CONFIG_DEBUG_FS
struct
dentry
*
debugfs_file
;
#endif
spinlock_t
dentry_lru_lock
;
struct
list_head
dentry_lru
;
...
...
fs/ceph/mon_client.h
View file @
039934b8
...
...
@@ -78,7 +78,9 @@ struct ceph_mon_client {
int
want_next_osdmap
;
/* 1 = want, 2 = want+asked */
u32
have_osdmap
,
have_mdsmap
;
#ifdef CONFIG_DEBUG_FS
struct
dentry
*
debugfs_file
;
#endif
};
extern
struct
ceph_monmap
*
ceph_monmap_decode
(
void
*
p
,
void
*
end
);
...
...
fs/ceph/osd_client.h
View file @
039934b8
...
...
@@ -83,7 +83,9 @@ struct ceph_osd_client {
struct
rb_root
requests
;
/* pending requests */
int
num_requests
;
struct
delayed_work
timeout_work
;
#ifdef CONFIG_DEBUG_FS
struct
dentry
*
debugfs_file
;
#endif
mempool_t
*
req_mempool
;
...
...
fs/ceph/super.h
View file @
039934b8
...
...
@@ -112,9 +112,11 @@ static inline unsigned long time_sub(unsigned long a, unsigned long b)
*/
struct
ceph_client
{
__s64
whoami
;
/* my client number */
#ifdef CONFIG_DEBUG_FS
struct
dentry
*
debugfs_monmap
;
struct
dentry
*
debugfs_mdsmap
,
*
debugfs_osdmap
;
struct
dentry
*
debugfs_dir
,
*
debugfs_dentry_lru
,
*
debugfs_caps
;
#endif
struct
mutex
mount_mutex
;
/* serialize mount attempts */
struct
ceph_mount_args
*
mount_args
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment