From patchwork Tue Apr 12 07:07:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 561233 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13368C433FE for ; Tue, 12 Apr 2022 09:53:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245085AbiDLJwY (ORCPT ); Tue, 12 Apr 2022 05:52:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351921AbiDLH16 (ORCPT ); Tue, 12 Apr 2022 03:27:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD7A84EF45 for ; Tue, 12 Apr 2022 00:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649747275; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=tLz72uflkvVspEGES+NUyiieIMSbQr6IFwFuFbg1X7E=; b=cytx4+jOnX5I8gTx5PAcUXCAL9wnr9+7ilpXw2FBVZ/i6LtErk4Q2NHX8tvhpq7uxcWYJT XNYiFuLMTZocboXlfRmtloey5Vyv247gX2pwI9PovugdNyR+etcBW1YznTwk72vO41swAj MVFAB/6eJeRQqa8GDUSOmDFo32Aqp4c= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-348-q5kF1msqPpSmLDMn8Yef7g-1; Tue, 12 Apr 2022 03:07:53 -0400 X-MC-Unique: q5kF1msqPpSmLDMn8Yef7g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B67961C0515F; Tue, 12 Apr 2022 07:07:52 +0000 (UTC) Received: from localhost (unknown [10.72.47.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1D18B407DEC2; Tue, 12 Apr 2022 07:07:51 +0000 (UTC) From: Xiubo Li To: jlayton@kernel.org Cc: idryomov@gmail.com, vshankar@redhat.com, lhenriques@suse.de, ceph-devel@vger.kernel.org, Xiubo Li Subject: [PATCH v3 0/3] ceph: misc fix size truncate for fscrypt Date: Tue, 12 Apr 2022 15:07:42 +0800 Message-Id: <20220412070745.22795-1-xiubli@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Hi Jeff, This series could be squashed into the same previous commit: e90dc20d37a3 ceph: add truncate size handling support for fscrypt V3: - fix possible kunmaping random vaddr bug, thanks Luis. V2: - remove the filemap lock related patch. - fix caps reference leakage Xiubo Li (3): ceph: flush small range instead of the whole map for truncate ceph: fix caps reference leakage for fscrypt size truncating ceph: fix possible kunmaping random vaddr fs/ceph/inode.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)