提交 c36ed50d 编写于 作者: C Chengguang Xu 提交者: Ilya Dryomov

ceph: fix alignment of rasize

On currently logic:
when I specify rasize=0~1 then it will be 4096.
when I specify rasize=2~4097 then it will be 8192.

Make it the same as rsize & wsize.
Signed-off-by: NChengguang Xu <cgxu519@gmx.com>
Reviewed-by: N"Yan, Zheng" <zyan@redhat.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 73fb0949
...@@ -271,7 +271,7 @@ static int parse_fsopt_token(char *c, void *private) ...@@ -271,7 +271,7 @@ static int parse_fsopt_token(char *c, void *private)
case Opt_rasize: case Opt_rasize:
if (intval < 0) if (intval < 0)
return -EINVAL; return -EINVAL;
fsopt->rasize = ALIGN(intval + PAGE_SIZE - 1, PAGE_SIZE); fsopt->rasize = ALIGN(intval, PAGE_SIZE);
break; break;
case Opt_caps_wanted_delay_min: case Opt_caps_wanted_delay_min:
if (intval < 1) if (intval < 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册