Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1162808imm; Wed, 1 Aug 2018 11:13:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeozamV9VNAqASvKUO3IkTGuwFDUJgmpTS1btsQqw/zxIDMS7R6nyhTUvyu4wZNUcWhEGe6 X-Received: by 2002:a62:6b44:: with SMTP id g65-v6mr27869122pfc.226.1533147192312; Wed, 01 Aug 2018 11:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533147192; cv=none; d=google.com; s=arc-20160816; b=I+Mm9P/u0mps1SFh/Ceetbjed5LhgG9qOdlCTtIloBCq0SUHusLuItPpENB1DarCCq i0qJScEUphntJ6M/TykgnLHSR7/abrQGpXUN+1anl3khAOqaRIKDhvvkiX0nzidLjHYR 6Q7Cj5oL+WFu8MxkWu5M9HqLz1/vF6FK8VHde8QPqz+N9/iJR7YPO8UYtPu3Q8Aq8mtu PlLQczubDCfpFIpEaLiqN/saRaZRxiz25f7EPiRLraYnF1VmIbKmJv/PvWbYUpVP8MYe ThholjKB2TNbLZcpaCOPsSrXTQB0jCBJjRwFax4tp/0SV2H4puQyPzcaE1m8GJa+VZ/M AEjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=tFR30+jbmjPmvzrLfIVSbI8A3IPTfgdgb3agxrbdqGs=; b=OHC9uZl/6Rccsk8uo28uyzNDLzW9gj0KImvz6KwZiliW35LwRqJfBL1xtsmhOHNugn zMx4xubBkFxanDIMnauBe047x5frEz4oFrt/0NP+zlxMTCzRkIPXUpOtjiZHXjckXVMj fjBd3vqasUgAON8p0cHmDJIvUoShKVkacx29hMiNdh7EY3FCsMLFKFKKPI796aops7AB ZO+TfCX3DR6GFpwJ2vSW4ZC8G+0MPnccuOOpCMVRNpZyJ8WAJUzmPURVYRjujN84beKk gUaumo4uMOMJBi4l+WPNjMBnSGQuXZMEZUS3veq7XUXnTgsQz9fJhMoaptvqBSD2g+nZ mqcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si16504867pgh.451.2018.08.01.11.12.57; Wed, 01 Aug 2018 11:13:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731600AbeHAT7E (ORCPT + 99 others); Wed, 1 Aug 2018 15:59:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49800 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405683AbeHATIf (ORCPT ); Wed, 1 Aug 2018 15:08:35 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B63E8136D; Wed, 1 Aug 2018 17:13:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chengguang Xu , "Yan, Zheng" , Ilya Dryomov , Sasha Levin Subject: [PATCH 4.14 043/246] ceph: fix alignment of rasize Date: Wed, 1 Aug 2018 18:49:13 +0200 Message-Id: <20180801165013.782976544@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chengguang Xu [ 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 Reviewed-by: "Yan, Zheng" Signed-off-by: Ilya Dryomov Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/ceph/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -254,7 +254,7 @@ static int parse_fsopt_token(char *c, vo 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)