diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-05-30 10:13:11 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-03 07:50:24 +0200 |
commit | 4c717e335ae14e5479bf6017a9466cbb0648266e (patch) | |
tree | 95b30aebcea6b5f773af947dbe694a888db6444e /fs | |
parent | cdad03c1f21e039affc8a709e5e982964d397039 (diff) | |
download | linux-stable-4c717e335ae14e5479bf6017a9466cbb0648266e.tar.gz linux-stable-4c717e335ae14e5479bf6017a9466cbb0648266e.tar.bz2 linux-stable-4c717e335ae14e5479bf6017a9466cbb0648266e.zip |
ceph: fix alignment of rasize
[ Upstream commit c36ed50de2ad1649ce0369a4a6fc2cc11b20dfb7 ]
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: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 48ffe720bf09..b79b1211a2b5 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -254,7 +254,7 @@ static int parse_fsopt_token(char *c, void *private) case Opt_rasize: if (intval < 0) return -EINVAL; - fsopt->rasize = ALIGN(intval + PAGE_SIZE - 1, PAGE_SIZE); + fsopt->rasize = ALIGN(intval, PAGE_SIZE); break; case Opt_caps_wanted_delay_min: if (intval < 1) |