Message ID | 201810311302.w9VD2m5k023148@finist-ce7.sw.ru |
---|---|
State | New |
Series | "fs/fuse kio_pcs: make map_truncate_tail() working as the original from libpcs_client" |
Headers | show
Delivered-To: criupatchwork@gmail.com Received: from gmail-imap.l.google.com [64.233.164.109] by patchwork.criu.org with IMAP (fetchmail-6.3.26) for <root@localhost> (single-drop); Wed, 31 Oct 2018 14:05:40 +0100 (CET) Received: by 2002:a6b:5404:0:0:0:0:0 with SMTP id i4-v6csp6406316iob; Wed, 31 Oct 2018 06:05:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5fQjjEY5xsm/TsA3CgfaBNdP9y2NwamCtqbM9fdPP3GbK/PJTXAUY+JSpXBtWrvEkX7CEdX X-Received: by 2002:a62:a93:: with SMTP id 19-v6mr3278885pfk.121.1540991123377; Wed, 31 Oct 2018 06:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540991123; cv=none; d=google.com; s=arc-20160816; b=HzM8F9PKTU3vfM45oF3JjUvPuioKAuPJv+zHoOkpeWrDVj5aMxVXJb0bcCWPl9O3jB W39KWTVnwqZ7coTc+iATCjNaElH822jexivUlBKZE+5gXZhS9Hv8SjitgAQzNeT6IBgM Hx5vaRNen4cY0QX38F+XZE+G4gXERWClHrQgEEz/0ioYLL9vPxCZWxTRSNrIIPCpr5VC lEKCoESSFnDHdsjtnfVcBFDZ8h9dv5dba9KRIK5meiWfrquUf1iYcN/c4C5xi7MyPaIm uZ/ADDDCA5tGtSm2rMkmj1g+oehL557qv6LjnypBaZPetMYJnmh5U5+wohnl18n8MOg0 WSVQ== 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:spamdiagnosticoutput:content-language :accept-language:in-reply-to:message-id:date:thread-index :thread-topic:to:from; bh=W2Gz2LmgIV6x1BHHgM0a1uWl26rVTSsMjhPXY/CWQgg=; b=acsnS8Yg9686Semu9Rp5vz1+wdOPEmgAbYZlx1lJrSgOHCmNBOXZnKVxZLJmZcuO2/ qNus3KxgxGQJ2j1gf2+kuQGaj1uxD22RK8PCfcJBMxGe/HzpDSS5WDeZ1dPHioJZZ1nc wa/zUYs55ugdRr9jdIN1XpFaoPUHg0Phz4Zjjgqg6y4Ayp5YMgnFwSLDXb7N9dfFyUpe GO5ptYcS/Bd01NPzu8Z53KguTgZey1/QSBy7IAgRndshK/C+osfrI3JCJ8G1qH/PwwS8 c2EVEqM0RbF6BiCl104HHxxhK1i9nY8ExhZqkAdHWFZG4xsH/Mthsn34byhXpft4Nw+p J5MQ== 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 z71si10505092pgd.490.2018.10.31.06.05.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 06:05:23 -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 w9VD3FSw009817; Wed, 31 Oct 2018 16:03:15 +0300 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03lp0087.outbound.protection.outlook.com [94.245.120.87]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id w9VD2nXu009754 for <devel@openvz.org>; Wed, 31 Oct 2018 16:02:49 +0300 Received: from VI1PR08MB3117.eurprd08.prod.outlook.com (52.133.15.22) by VI1PR08MB0576.eurprd08.prod.outlook.com (10.162.17.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.27; Wed, 31 Oct 2018 13:02:50 +0000 Received: from VI1PR08MB3117.eurprd08.prod.outlook.com ([fe80::e5d3:ab0d:b2b9:6aac]) by VI1PR08MB3117.eurprd08.prod.outlook.com ([fe80::e5d3:ab0d:b2b9:6aac%6]) with mapi id 15.20.1273.027; Wed, 31 Oct 2018 13:02:50 +0000 From: Konstantin Khorenko <khorenko@virtuozzo.com> To: Pavel Butsykin <pbutsykin@virtuozzo.com> Thread-Topic: [PATCH RHEL7 COMMIT] fs/fuse kio_pcs: make map_truncate_tail() working as the original from libpcs_client Thread-Index: AQHUcRoG4MGt0YX4DEqYchrF6LwNpQ== Date: Wed, 31 Oct 2018 13:02:50 +0000 Message-ID: <201810311302.w9VD2m5k023148@finist-ce7.sw.ru> In-Reply-To: <20181031115217.6050-2-pbutsykin@virtuozzo.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR07CA0009.eurprd07.prod.outlook.com (2603:10a6:209:2a::22) To VI1PR08MB3117.eurprd08.prod.outlook.com (2603:10a6:803:46::22) authentication-results: openvz.org; dkim=none (message not signed) header.d=none; openvz.org; dmarc=none action=none header.from=virtuozzo.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [185.231.240.5] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR08MB0576; 7:IVsXcY0LV+BgC0OTv39iiEdyATxaDSDB5WVAtuUpW34iZszCAzjsmfQ6+bZ/QkGDijk3n1CvA2Y2A8RyMj53XfeaX6nu/kmyEDAfHY8Z8xgB9eQ1ml0/YDVEhh1lL7hDMwBTpFNyaek7McqxDarocw==; 20:WpaeZ4sQVy+fga9LG3ufrwWhK/agVflob558La6fbWeARCo+JfKNVT491QigspQLiQXHKzxRNOh/U0gXB6Ty31zMuwJr3zGl4EzedOVdOoKkmSuh+Vm6j7sIryW14jbHnh6sQi4URTcu1dxmYdZhr3S8XdeQzLE1vpXQj6teHM0= x-ms-office365-filtering-correlation-id: c6a264d5-8ea8-4c91-0c81-08d63f312921 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB0576; x-ms-traffictypediagnostic: VI1PR08MB0576: x-exchange-antispam-report-test: UriScan:(215187933766430); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(9101524173)(20180801055)(2401047)(8121501046)(823300264)(823320095)(10201501046)(3002001)(3231382)(944501410)(52105095)(93006095)(93001095)(148016)(201708071742011)(7699051)(76991095); SRVR:VI1PR08MB0576; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB0576; x-forefront-antispam-report: SFV:SKI; SFS:; DIR:INB; SFP:; SCL:-1; SRVR:VI1PR08MB0576; H:VI1PR08MB3117.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; x-microsoft-antispam-message-info: HoE6HF8yGUdjRF0QC6WsVRQgpq1fl3h2hWvTqAEfMoIITrEYQPNezPSfcVYttA0AyijEgecKW/a2y6KEJeKCA5256f1/+DOLcvHrWXGtuD8LYFb3M2cAs4sSjuOfcT/nKCgayKLWgPjb5MoJ+kI2MyLeK87vkwvXgk1GuKlMXs/KWC5N+nRzqd0KOdb6dOE88u5bIzavnZwVqA9N9VgaXEL2BvK940j5I0K8n0vzlyS4lPubPCEpbgKd9behfEVOA6nRJ2dRIPnNZzyZRJwjSHd0lijhoz9p0lU8peqYtDplD5DNjq+eqc0Fc0dwUYIG3GOdufcHqP1QGa5ZETW3RwN3C/Sop89YSDzBsBGFcC8= spamdiagnosticoutput: 1:0 MIME-Version: 1.0 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6a264d5-8ea8-4c91-0c81-08d63f312921 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 13:02:50.2267 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB0576 X-MS-Exchange-CrossPremises-AuthAs: Internal X-MS-Exchange-CrossPremises-AuthMechanism: 06 X-MS-Exchange-CrossPremises-AuthSource: VI1PR08MB3117.eurprd08.prod.outlook.com X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-TransportTrafficSubType: X-MS-Exchange-CrossPremises-SCL: -1 X-MS-Exchange-CrossPremises-mapi-admin-submission: X-MS-Exchange-CrossPremises-messagesource: StoreDriver X-MS-Exchange-CrossPremises-BCC: X-MS-Exchange-CrossPremises-originalclientipaddress: 185.231.240.5 X-MS-Exchange-CrossPremises-transporttraffictype: Email X-MS-Exchange-CrossPremises-transporttrafficsubtype: X-MS-Exchange-CrossPremises-antispam-scancontext: DIR:Originating; SFV:SKI; SKIP:0; X-MS-Exchange-CrossPremises-processed-by-journaling: Journal Agent X-OrganizationHeadersPreserved: VI1PR08MB0576.eurprd08.prod.outlook.com X-MIME-Autoconverted: from quoted-printable to 8bit by mail.openvz.org id w9VD2nXu009754 Cc: OpenVZ devel <devel@openvz.org> Subject: [Devel] [PATCH RHEL7 COMMIT] fs/fuse kio_pcs: make map_truncate_tail() working as the original from libpcs_client 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 25c0281d5278..2990e8e2a3e9 100644 --- a/fs/fuse/kio/pcs/pcs_map.c +++ b/fs/fuse/kio/pcs/pcs_map.c @@ -237,8 +237,7 @@ void pcs_mapping_dump(struct pcs_mapping * mapping) void map_truncate_tail(struct pcs_mapping * mapping, u64 offset) { - - unsigned long pos = offset >> mapping->chunk_size_bits; + unsigned long pos = DIV_ROUND_UP(offset, 1 << mapping->chunk_size_bits); struct pcs_map_entry *maps[MAP_BATCH]; int nr_maps; LIST_HEAD(dispose);