Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4371165pxf; Tue, 16 Mar 2021 11:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX0yN/rhOqWwQGjavoz/7VDYVF6OBQS4RwzZphRr5KA92hW7+Z1DeqOA5Fa2nr50Qg+jUY X-Received: by 2002:a17:906:3295:: with SMTP id 21mr31002541ejw.88.1615920269995; Tue, 16 Mar 2021 11:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615920269; cv=none; d=google.com; s=arc-20160816; b=fZdAVP1GZuhVgMF7mjpDezAgvmfILo7lwYguy7gRHC/rWTtJQItjPEX2FVtbB5J5Ip 5s/qDJy0+aGP/Q/dDp/71RIZVSSNOTUCS/5WH73i652brxUuelAY1WjKHGV1657Vk5OY LUy7lfbNdVKbdBjpwYvzGFrBrGSfierd8MFWCI9myYOaT1R1Z5bxx/aB8VkvQevW1O1I AtLo+x/j8H77px59cAb5mrzOGDvkbuVq1vcMf6R0wXs9/lR54R3MuwaOw4F/c8V+cN4w cG+TzqejsJoMRvO1nEdSn0EYNWD6OCTwyNRPb9+awPEs1yy4PjyJz3u3X9RJC199y3+5 7vhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=cl1rlTIx8l2Z6uqmtTvNj6xmKHyuP371Vg3Dpmd5I5g=; b=yf7m3pYxGKy2wS0soqOwe96bCeOdzR0KZn7pGQbLxGqCM++KU6+tb1YoGMo4DWmjIY hfPsC/4nR/UOb+cScmxdklzXNCIp+YktJbXnn4z7qvFQUNpr4D86BHFmMtWXRIN/e1aA Uk2tGWP2kLqR2HE/DgHKFuvlq4jARSyZmnDADw9xarwCdI1pNJAY2L7ZVX2fDQA90jAv huxWuc4Ad1gcY4X/0wV0hVGOqYojFsIxSD0JIoRjBu9id1k/8v1ANrSu5M3/YjpRc8WU x15VznMv0AYqdTKFR+HZMZUAGXQ3LC4E+QTwO1+YIvKztQid4boqBx2tfcEp5na119bx vhIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si14232057eje.367.2021.03.16.11.44.06; Tue, 16 Mar 2021 11:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234792AbhCPL3r (ORCPT + 99 others); Tue, 16 Mar 2021 07:29:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:40414 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233069AbhCPL3S (ORCPT ); Tue, 16 Mar 2021 07:29:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C5112AC1D; Tue, 16 Mar 2021 11:29:16 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 5799B1F2C4C; Tue, 16 Mar 2021 12:29:16 +0100 (CET) Date: Tue, 16 Mar 2021 12:29:16 +0100 From: Jan Kara To: Sascha Hauer Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Christoph Hellwig , kernel@pengutronix.de, Jan Kara , Richard Weinberger Subject: Re: [PATCH v3 0/2] quota: Add mountpath based quota support Message-ID: <20210316112916.GA23532@quack2.suse.cz> References: <20210304123541.30749-1-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210304123541.30749-1-s.hauer@pengutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 04-03-21 13:35:38, Sascha Hauer wrote: > Current quotactl syscall uses a path to a block device to specify the > filesystem to work on which makes it unsuitable for filesystems that > do not have a block device. This series adds a new syscall quotactl_path() > which replaces the path to the block device with a mountpath, but otherwise > behaves like original quotactl. > > This is done to add quota support to UBIFS. UBIFS quota support has been > posted several times with different approaches to put the mountpath into > the existing quotactl() syscall until it has been suggested to make it a > new syscall instead, so here it is. > > I'm not posting the full UBIFS quota series here as it remains unchanged > and I'd like to get feedback to the new syscall first. For those interested > the most recent series can be found here: https://lwn.net/Articles/810463/ Thanks. I've merged the two patches into my tree and will push them to Linus for the next merge window. Honza > > Changes since v2: > - Rebase on v5.12-rc1 > - replace mountpath.dentry->d_inode->i_sb with mountpath.mnt->mnt_sb > - fix wrong macro usage in arch/x86/entry/syscalls/syscall_32.tbl > - +Cc linux-api@vger.kernel.org > > Changes since (implicit) v1: > - Ignore second path argument to Q_QUOTAON. With this quotactl_path() can > only do the Q_QUOTAON operation on filesystems which use hidden inodes > for quota metadata storage > - Drop unnecessary quotactl_cmd_onoff() check > > Sascha Hauer (2): > quota: Add mountpath based quota support > quota: wire up quotactl_path > > arch/alpha/kernel/syscalls/syscall.tbl | 1 + > arch/arm/tools/syscall.tbl | 1 + > arch/arm64/include/asm/unistd.h | 2 +- > arch/arm64/include/asm/unistd32.h | 2 + > arch/ia64/kernel/syscalls/syscall.tbl | 1 + > arch/m68k/kernel/syscalls/syscall.tbl | 1 + > arch/microblaze/kernel/syscalls/syscall.tbl | 1 + > arch/mips/kernel/syscalls/syscall_n32.tbl | 1 + > arch/mips/kernel/syscalls/syscall_n64.tbl | 1 + > arch/mips/kernel/syscalls/syscall_o32.tbl | 1 + > arch/parisc/kernel/syscalls/syscall.tbl | 1 + > arch/powerpc/kernel/syscalls/syscall.tbl | 1 + > arch/s390/kernel/syscalls/syscall.tbl | 1 + > arch/sh/kernel/syscalls/syscall.tbl | 1 + > arch/sparc/kernel/syscalls/syscall.tbl | 1 + > arch/x86/entry/syscalls/syscall_32.tbl | 1 + > arch/x86/entry/syscalls/syscall_64.tbl | 1 + > arch/xtensa/kernel/syscalls/syscall.tbl | 1 + > fs/quota/quota.c | 49 +++++++++++++++++++-- > include/linux/syscalls.h | 2 + > include/uapi/asm-generic/unistd.h | 4 +- > kernel/sys_ni.c | 1 + > 22 files changed, 71 insertions(+), 5 deletions(-) > > -- > 2.29.2 > -- Jan Kara SUSE Labs, CR