Message ID | 20190605103540.14775-1-pbutsykin@virtuozzo.com |
---|---|
State | New |
Series | "Series without cover letter" |
Headers | show
Delivered-To: criupatchwork@gmail.com Received: from gmail-imap.l.google.com [74.125.131.108] by patchwork.criu.org with IMAP (fetchmail-6.3.26) for <root@localhost> (single-drop); Wed, 05 Jun 2019 12:38:23 +0200 (CEST) Received: by 2002:a6b:3a06:0:0:0:0:0 with SMTP id h6csp6844818ioa; Wed, 5 Jun 2019 03:38:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4KxyyBPTVeSQgrh1s2iUIl7kbpBgYoZsMzsjHO7g6UfN4aWWriQo5RwbRMSgOVruer7oQ X-Received: by 2002:a2e:7f06:: with SMTP id a6mr5219164ljd.173.1559731096144; Wed, 05 Jun 2019 03:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559731096; cv=none; d=google.com; s=arc-20160816; b=Fx3ZK40I/t2v+zZaRws3zyKKsGT7EhBmfA/dKwm+UMLO+kdtKN3gDEYbIYdSChlzlG xpXrkVvruXtI6iMnLQ8Fi4BADhAQ79sORNlTIp3n2wwn/6QaswdIlqjO7ZR2tRwK7ybf hHdq6pRXtceGOE1zY8Qh9hJkqiKUipe3jUxRMKTnJckPDIxS+SsZEmnFmi+/h4TylFbV O6aZLr6gS1LXMOlhuJjLYcBkLATXLEUTbywlbRWgJpr6QBmsDsxpv3b8Nu1DQ3G875NS UK7IApqZkUUYHFu1pCkHKKcHL+1r9WpZnPowaLrTDzPEX7aXHfNfipaGwwe0YPkP9zWr chtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from; bh=UhkDsFXu/Bceit9FILMKb8TTyzqVHz8uFw1fVDZ/QXA=; b=q9BB91p6BB8jJL3J1ySp1DwR54wT7kp805fS373Dywr+3OI+6MBIzSwQVKFtrDT/ZK p2wQCcg7RhyPQBm44UoDrNXBW8d+vjt5Alt/85p/AdMkLuiVdTygZ3GBhnOzeUqpQkez AkKauWe29f5qXwQ9thRU/mbemw7Iw+Bich8QfxzZNA0JvewDxdFq7oBWd7ojPuPUVSoI MSVNHRXZlUpefL7yHQ3Da8zMLm62PxFGwJcCjJsYqFP6CUVw//wNWdchEC/QYKpaBoWI 4Wba8D+or0SBwuu4NMaw5FJZjowgY3NU6SDtPWTdwRumjcnMVLr6DizyunwEGiVz5thL vUJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: <devel-bounces@openvz.org> Received: from mail.openvz.org (mail.openvz.org. [185.231.241.50]) by mx.google.com with ESMTPS id b20si15802240lfp.7.2019.06.05.03.38.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 03:38:16 -0700 (PDT) Received-SPF: pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) client-ip=185.231.241.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from localhost.localdomain (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id x55AZlBD026148; Wed, 5 Jun 2019 13:35:58 +0300 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01lp2056.outbound.protection.outlook.com [104.47.1.56]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id x55AZgLT026141 for <devel@openvz.org>; Wed, 5 Jun 2019 13:35:42 +0300 Received: from VI1PR08CA0205.eurprd08.prod.outlook.com (2603:10a6:802:15::14) by VI1PR08MB3360.eurprd08.prod.outlook.com (2603:10a6:803:3f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.12; Wed, 5 Jun 2019 10:35:44 +0000 Received: from DB5EUR01FT054.eop-EUR01.prod.protection.outlook.com (2a01:111:f400:7e02::204) by VI1PR08CA0205.outlook.office365.com (2603:10a6:802:15::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.17 via Frontend Transport; Wed, 5 Jun 2019 10:35:44 +0000 Authentication-Results: spf=pass (sender IP is 185.231.240.75) smtp.mailfrom=virtuozzo.com; openvz.org; dkim=none (message not signed) header.d=none; openvz.org; dmarc=pass action=none header.from=virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of virtuozzo.com designates 185.231.240.75 as permitted sender) receiver=protection.outlook.com; client-ip=185.231.240.75; helo=relay.sw.ru; Received: from relay.sw.ru (185.231.240.75) by DB5EUR01FT054.mail.protection.outlook.com (10.152.5.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.12 via Frontend Transport; Wed, 5 Jun 2019 10:35:44 +0000 Received: from vz-out.virtuozzo.com ([185.231.240.5] helo=pavelb-Z68P-DS3.sw.ru) by relay.sw.ru with esmtp (Exim 4.91) (envelope-from <pbutsykin@virtuozzo.com>) id 1hYTGh-00016n-0k; Wed, 05 Jun 2019 13:35:43 +0300 From: Pavel Butsykin <pbutsykin@virtuozzo.com> To: <devel@openvz.org>, <kuznet@virtuozzo.com> Date: Wed, 5 Jun 2019 13:35:39 +0300 Message-ID: <20190605103540.14775-1-pbutsykin@virtuozzo.com> X-Mailer: git-send-email 2.15.1 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: SFV:SKI; SFV:SKN; SFS:; DIR:INB; SFP:; SCL:-1; SRVR:VI1PR08MB3360; H:relay.sw.ru; FPR:; SPF:None; LANG:en; MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c84a39d-39f4-4335-96d2-08d6e9a19098 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328); SRVR:VI1PR08MB3360; X-MS-TrafficTypeDiagnostic: VI1PR08MB3360: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?u45xKpGzr+A1aOrdXQEg/fMFb2a0us2eGe/nNWKk+XpD+amwnGJvJ8o7SEKY?= =?us-ascii?Q?8mS6Sd2HZNowOZRdH3JwDtq0VosbXyQVHO5h1BjNoB2U8mISy3Imn4ya29R3?= =?us-ascii?Q?HMkR1jOTXl8QG7dfFgzurkfykz1+hvaee7rQftVttjxqJq8oFVIKQ8n19zQT?= =?us-ascii?Q?PZVWzcTGgiZwFSqGE4mcJJthKV7/fo4unSPo9M4dsuLLA67OKi2REZWfwuHS?= =?us-ascii?Q?daGiZL9QgJnFFgnN/RXss7K0YxCRtLYuvBAJBB/2TvbRIinhPi3HM1VWwc+8?= =?us-ascii?Q?EL27ou9pDmOOiKhsJyhTZEx8AyW9ALlBcIxSui5xF1coeb6F04JE6IkahjzP?= =?us-ascii?Q?XVBKQlG/mNuLx96500lY7eZHN5mA9TwtbNttx2YX5jzVB7nvGEYrsBZJ9Rpn?= =?us-ascii?Q?FcspEVX55285JCBPVRDwRczGAdLrnRTjiHvmhruvR5RuYmGTOrDnClgjjvoD?= =?us-ascii?Q?WG9fPrLHD6mDDvffKeJRTrLNMvaxVFVjMjH2GQX57wYe8XX6bNJri1HGR0eT?= =?us-ascii?Q?ATqM8l0h27IQNTYzChXOXghMcYqE7Fp1cdBlRXudf9o5f94hF6OFn9/njpNd?= =?us-ascii?Q?FaLQ0rlJ7Cz6ssMvZjGYMQSnXyl/RQsDK3qXAlxLDz80XxeC9QrdPVXb6J5Q?= =?us-ascii?Q?VJPT++lopzi0VED5uV/e7DRkvcHYY10hE8F/m/nSIRpo7NJLehcM+i593Eja?= =?us-ascii?Q?kGx3yaDxCXtzaANSy7eJ0KtARfuXv5yO62/eG9fdK4CzZ6xvlvqwOGwSt4oZ?= =?us-ascii?Q?aJ1YU+jRDmFWwGsVJyOEy2cr0I8We0HqbyzrRcj67yt+ustzq30tSRTgU2sx?= =?us-ascii?Q?wruovu+gMgajbpC3Ug85lmENLBN6aWv8PQM58DGHin9kiCIZff3wprD8XwPN?= =?us-ascii?Q?9oV0AI6f7Gf8PnGeK9mUtQTw0tWqXp8jcsiZH5lR9LiNvoocU42djmW1mkEw?= =?us-ascii?Q?1xFwGj61o6CQSLzI8zB3bSKspfIIeIeg/wpT5jAKPMVHD0sxHIqifZ4LzOtG?= =?us-ascii?Q?Yzqr?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2019 10:35:44.4399 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c84a39d-39f4-4335-96d2-08d6e9a19098 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0bc7f26d-0264-416e-a6fc-8352af79c58f; Ip=[185.231.240.75]; Helo=[relay.sw.ru] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3360 X-MS-Exchange-CrossPremises-OriginalClientIPAddress: 185.231.240.75 X-MS-Exchange-CrossPremises-SCL: -1 X-MS-Exchange-CrossPremises-AuthSource: DB5EUR01FT054.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossPremises-AuthAs: Anonymous X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-TransportTrafficSubType: X-MS-Exchange-CrossPremises-Antispam-ScanContext: DIR:Originating; SFV:SKN; SKIP:0; X-MS-Exchange-CrossPremises-Processed-By-Journaling: Journal Agent X-OrganizationHeadersPreserved: VI1PR08MB3360.eurprd08.prod.outlook.com Cc: azaitsev@virtuozzo.com Subject: [Devel] [PATCH RFC 1/2] fs/fuse kio: fix range calculation in map_inject_flush_req() X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development <devel.openvz.org> List-Unsubscribe: <https://lists.openvz.org/mailman/options/devel>, <mailto:devel-request@openvz.org?subject=unsubscribe> List-Archive: <http://lists.openvz.org/pipermail/devel/> List-Post: <mailto:devel@openvz.org> List-Help: <mailto:devel-request@openvz.org?subject=help> List-Subscribe: <https://lists.openvz.org/mailman/listinfo/devel>, <mailto:devel-request@openvz.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org |
diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c index d70ef8fea70e..70be51b025d9 100644 --- a/fs/fuse/kio/pcs/pcs_map.c +++ b/fs/fuse/kio/pcs/pcs_map.c @@ -3116,7 +3116,7 @@ void map_inject_flush_req(struct pcs_int_request *ireq) INIT_LIST_HEAD(&ireq_list); idx = ireq->apireq.req->pos >> DENTRY_CHUNK_SIZE_BITS(di); - end = (ireq->apireq.req->pos + ireq->apireq.req->size) >> DENTRY_CHUNK_SIZE_BITS(di); + end = ireq->apireq.req->pos + ireq->apireq.req->size; if (end <= ireq->apireq.req->pos) end = ~0ULL; end_idx = end >> DENTRY_CHUNK_SIZE_BITS(di);
Actually, this patch will not significantly change anything, because PCS_REQ_T_SYNC request in the kernel is always prepared with zero size. But in any case, it's better to fix it so that there is no unnecessary confusion. Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> --- fs/fuse/kio/pcs/pcs_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)