From patchwork Tue Apr 7 10:30:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Henriques X-Patchwork-Id: 11477867 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0D6E1871 for ; Tue, 7 Apr 2020 10:30:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8974F206F7 for ; Tue, 7 Apr 2020 10:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728578AbgDGKaD (ORCPT ); Tue, 7 Apr 2020 06:30:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:48704 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbgDGKaC (ORCPT ); Tue, 7 Apr 2020 06:30:02 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 063F4AC91; Tue, 7 Apr 2020 10:29:59 +0000 (UTC) From: Luis Henriques To: Jeff Layton , Sage Weil , Ilya Dryomov , Gregory Farnum , Zheng Yan Cc: Frank Schilder , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Henriques Subject: [PATCH v2 0/2] ceph: support cross-quota-tree renames Date: Tue, 7 Apr 2020 11:30:18 +0100 Message-Id: <20200407103020.22588-1-lhenriques@suse.com> MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Hi! The following patches will make the cephfs kernel client behave the same way as the fuse client when doing renames across different quota realms. Changes since v1: - Dropped 'old == new' check in ceph_quota_check_rename() and added back optimization in ceph_rename(), to only check realms if old_dir and new_dir are different. Luis Henriques (2): ceph: normalize 'delta' parameter usage in check_quota_exceeded ceph: allow rename operation under different quota realms fs/ceph/dir.c | 9 +++---- fs/ceph/quota.c | 62 +++++++++++++++++++++++++++++++++++++++++++++---- fs/ceph/super.h | 3 ++- 3 files changed, 65 insertions(+), 9 deletions(-)