Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4235163ybb; Tue, 7 Apr 2020 03:32:24 -0700 (PDT) X-Google-Smtp-Source: APiQypJBvMii/ofUgqgJb5RF0IftwA1tRa6zQ+O1vO+0BiqflLKwAJrlunHKV59D75AUIyueKAAL X-Received: by 2002:a4a:888c:: with SMTP id j12mr179667ooa.52.1586255543945; Tue, 07 Apr 2020 03:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586255543; cv=none; d=google.com; s=arc-20160816; b=iyXp6Hd1thT43fnUDrxDbmRgQAdVO7ARRKQg1DvRH6wI8qaULJWF521JvfDNybi7uy hgJm8T2HOtBWR3e/SPJBocRl1dyjslA769HowFYATvnCREE3w70wn5WpPzQxv+1LYl7y h/mviVb7/XIwn7KvNCB3G2zKgkHSr2GdinDBbbibITrjq9p1ZYTbLYc2yWOorb26e1TJ UdWu8ihfXRDJFOj7lerCksw05Qyi6BiIlFTzvjMrJ4FqVAZi5nionRy+YjWAJfK0Rx86 ZrBniFtmgROANvvssmhcTfGBjFYLsv3p272bUTwD8PfyZs77vRQBmAmdNZhQpM+5+Mo8 Z4EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Npt3Z4axXuQAm1iXoMwGL7lBYWpvmhqyFx/ssbndrqE=; b=R84uhwFgX07IqVF9rFbyq6CtCEzDJC6wWLIqIqUk0ThoJsesXsmljhCzGwMY9uD9jr albMcQHz2O+kjuRVifOlZDT1zqYQyysfAT9iKIQV1qhJ57wIPStTaqsRaf5GkpIPjCWE 5cyI3nFSNY3mAmJbylw7mE/bDwmqMiBG9hZuWTFF5tYG1rBCiV+LwHIuuf3uwWv2+FcB hh3/TevNCCK9+MMXAGNbiaEzN24qv/88Z7ZvqrDhbXFYztn7wB923au+hT5DueOm4WpS aCFO8kO7v3WQXuMbkBicUeVAPjiPhr6J4fSaErZ/zh7iTeWYaNcpgKrHqm207ZfqXq6K eQRQ== 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 o203si939002oig.1.2020.04.07.03.32.12; Tue, 07 Apr 2020 03:32:23 -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 S1728608AbgDGKaE (ORCPT + 99 others); Tue, 7 Apr 2020 06:30:04 -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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-)