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
Kirill Smelkov
linux
Commits
80456f86
Commit
80456f86
authored
Mar 10, 2011
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: move readahead default to fs/ceph from libceph
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
ad1fee96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
fs/ceph/super.c
fs/ceph/super.c
+2
-2
fs/ceph/super.h
fs/ceph/super.h
+1
-0
include/linux/ceph/libceph.h
include/linux/ceph/libceph.h
+0
-1
No files found.
fs/ceph/super.c
View file @
80456f86
...
@@ -293,7 +293,7 @@ static int parse_mount_options(struct ceph_mount_options **pfsopt,
...
@@ -293,7 +293,7 @@ static int parse_mount_options(struct ceph_mount_options **pfsopt,
fsopt
->
sb_flags
=
flags
;
fsopt
->
sb_flags
=
flags
;
fsopt
->
flags
=
CEPH_MOUNT_OPT_DEFAULT
;
fsopt
->
flags
=
CEPH_MOUNT_OPT_DEFAULT
;
fsopt
->
rsize
=
CEPH_
MOUNT_
RSIZE_DEFAULT
;
fsopt
->
rsize
=
CEPH_RSIZE_DEFAULT
;
fsopt
->
snapdir_name
=
kstrdup
(
CEPH_SNAPDIRNAME_DEFAULT
,
GFP_KERNEL
);
fsopt
->
snapdir_name
=
kstrdup
(
CEPH_SNAPDIRNAME_DEFAULT
,
GFP_KERNEL
);
fsopt
->
caps_wanted_delay_min
=
CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT
;
fsopt
->
caps_wanted_delay_min
=
CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT
;
fsopt
->
caps_wanted_delay_max
=
CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT
;
fsopt
->
caps_wanted_delay_max
=
CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT
;
...
@@ -375,7 +375,7 @@ static int ceph_show_options(struct seq_file *m, struct vfsmount *mnt)
...
@@ -375,7 +375,7 @@ static int ceph_show_options(struct seq_file *m, struct vfsmount *mnt)
if
(
fsopt
->
wsize
)
if
(
fsopt
->
wsize
)
seq_printf
(
m
,
",wsize=%d"
,
fsopt
->
wsize
);
seq_printf
(
m
,
",wsize=%d"
,
fsopt
->
wsize
);
if
(
fsopt
->
rsize
!=
CEPH_
MOUNT_
RSIZE_DEFAULT
)
if
(
fsopt
->
rsize
!=
CEPH_RSIZE_DEFAULT
)
seq_printf
(
m
,
",rsize=%d"
,
fsopt
->
rsize
);
seq_printf
(
m
,
",rsize=%d"
,
fsopt
->
rsize
);
if
(
fsopt
->
congestion_kb
!=
default_congestion_kb
())
if
(
fsopt
->
congestion_kb
!=
default_congestion_kb
())
seq_printf
(
m
,
",write_congestion_kb=%d"
,
fsopt
->
congestion_kb
);
seq_printf
(
m
,
",write_congestion_kb=%d"
,
fsopt
->
congestion_kb
);
...
...
fs/ceph/super.h
View file @
80456f86
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#define ceph_test_mount_opt(fsc, opt) \
#define ceph_test_mount_opt(fsc, opt) \
(!!((fsc)->mount_options->flags & CEPH_MOUNT_OPT_##opt))
(!!((fsc)->mount_options->flags & CEPH_MOUNT_OPT_##opt))
#define CEPH_RSIZE_DEFAULT (512*1024)
/* readahead */
#define CEPH_MAX_READDIR_DEFAULT 1024
#define CEPH_MAX_READDIR_DEFAULT 1024
#define CEPH_MAX_READDIR_BYTES_DEFAULT (512*1024)
#define CEPH_MAX_READDIR_BYTES_DEFAULT (512*1024)
#define CEPH_SNAPDIRNAME_DEFAULT ".snap"
#define CEPH_SNAPDIRNAME_DEFAULT ".snap"
...
...
include/linux/ceph/libceph.h
View file @
80456f86
...
@@ -71,7 +71,6 @@ struct ceph_options {
...
@@ -71,7 +71,6 @@ struct ceph_options {
#define CEPH_OSD_TIMEOUT_DEFAULT 60
/* seconds */
#define CEPH_OSD_TIMEOUT_DEFAULT 60
/* seconds */
#define CEPH_OSD_KEEPALIVE_DEFAULT 5
#define CEPH_OSD_KEEPALIVE_DEFAULT 5
#define CEPH_OSD_IDLE_TTL_DEFAULT 60
#define CEPH_OSD_IDLE_TTL_DEFAULT 60
#define CEPH_MOUNT_RSIZE_DEFAULT (512*1024)
/* readahead */
#define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024)
#define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024)
#define CEPH_MSG_MAX_DATA_LEN (16*1024*1024)
#define CEPH_MSG_MAX_DATA_LEN (16*1024*1024)
...
...
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