Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5223824imm; Tue, 19 Jun 2018 07:06:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIkzROaO0l7LM/3OfG6CTCpY9XR3TaMW3NrHR7Zce62y7PCJN4LzC5Vh9EVo+V7TTVbJqn6 X-Received: by 2002:a62:f206:: with SMTP id m6-v6mr18109647pfh.171.1529417187901; Tue, 19 Jun 2018 07:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529417187; cv=none; d=google.com; s=arc-20160816; b=YufZ4Ln8zrDpQ8OaXiDUTXfkLiHyuC+DeAkpH5EuRuSMp+6VfxmHhs9agZKPJ7cvNo Yj+A0AGB0pF6J38WeRPRi0yCQ+GYJqscULIRIwNUOKe6pUAbj1l9YAloDjUBS6nBnor6 oy24NyljJNoq15y4CYSluObmUQlTC3Gmfb2iovnS79bk+AKCY2+Dv8I3IUWVvD0UBpmU 2cetvyjI6WFUfRZLAg79T7v9RTO+q/Efrxx9FWcKBqQP0FK35MOSvEoBcw8jtEQuQyjI wV4i7xFnD7lojSRJD22cUvjUWCJZTWkHKLmojXY7XJgK2zfDDCQxJ0nxRRLZ4M1lhXK+ GQkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bV83TdM3N0InaIFNv+91wO16PuJxEqo2X/h2Y++QqkY=; b=qTwX1XqgZDwscvhoThxu2NQc9GKjOsVPzwJCKO9II9GwmlkZjf0mvnBu01RkZ/vEG+ oWbUsO1TocmwEvB6QbwgfjtTY7IytShuqndiln/XWDOftv/4RzXMHawa5pdeW4pd4x89 hh9NDozDGz6LG+YWdir0SviG5jQZsFLlYWmSYHQDsz4wNuxriVaYUOBTXO0WvWZhoDeV 5lV4vo3185EsvJB1MQZthqMRDa3/TEpVGB6s7HtWgScOJwtzADgl6POzdwlvkn1CNZ2Y g06E/+cPcNMS1aEmi1CIybGHR14GKIvZUh4cII8xML5/CSiqYvIG60Lrz8TidAlrOgoM bC4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Ognqla78; 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 bj8-v6si16904021plb.439.2018.06.19.07.06.14; Tue, 19 Jun 2018 07:06:27 -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; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Ognqla78; 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 S1757028AbeFSOEr (ORCPT + 99 others); Tue, 19 Jun 2018 10:04:47 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:39215 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756929AbeFSOEn (ORCPT ); Tue, 19 Jun 2018 10:04:43 -0400 Received: by mail-ot0-f194.google.com with SMTP id l15-v6so22673744oth.6 for ; Tue, 19 Jun 2018 07:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bV83TdM3N0InaIFNv+91wO16PuJxEqo2X/h2Y++QqkY=; b=Ognqla785vKK3koa1Z+RWnDiPehYSQiopcOH7Xt1ash/JKG3E8yTHS2xp9ShYyZcYi hLGrzOYxpEa0K0yWv5s1oBZmk2O2q0WF59rMfYvY3jUdyEztdcLBmRNDaoIaUxVQDzXn YoCOvQKryZmtWUkX1yRpeL0CLJ0tTBbM44tis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bV83TdM3N0InaIFNv+91wO16PuJxEqo2X/h2Y++QqkY=; b=NRwjafZa9MxX3dDVK0Zma2Xq54FC5LFd5qW/lpJQo3BHdrwYs3y6BJ9ordq6gszdRp Xrx2yURJ5jyLaiwDwMWlea/he+g/tVCIu5l5le/XXv6YdJWaMMKZab9oblL7/70cWzOV JZCHYZeauBl0Fmn9nuwT4j168y/NV7VxABS/M/9hC0KHmBopsF9x5MROUrLfdIdewcEs BxIIMPKlme5eZLdeJ3NdpcEmyDxWsgk+fnFDs+fzbkumqZxmOt7y8b2AFVpi6XL6Hhnu RbU7Dw597N7QFWzptXyI+03DfC3pQunOGgKEVlk2oIEkSnKuBai6BAbDOeBrOV/PCUUx lKqQ== X-Gm-Message-State: APt69E1esrXZYqxXG0z2Jm/mWBgc1mEnZHJYTBPXzUJug2KA5upnug1I URcsK2t6WbniaCLUxogZAzPi3xm7TDSq/HIowC3EEw== X-Received: by 2002:a9d:1033:: with SMTP id h48-v6mr11104415ote.306.1529417082619; Tue, 19 Jun 2018 07:04:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1123:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 07:04:41 -0700 (PDT) X-Originating-IP: [176.63.54.97] In-Reply-To: <20180611162412.GA7574@infradead.org> References: <20180529144339.16538-1-mszeredi@redhat.com> <20180529144339.16538-8-mszeredi@redhat.com> <20180604084904.GF11333@infradead.org> <20180610045657.GM30522@ZenIV.linux.org.uk> <20180611162412.GA7574@infradead.org> From: Miklos Szeredi Date: Tue, 19 Jun 2018 16:04:41 +0200 Message-ID: Subject: Re: [PATCH 07/39] vfs: export vfs_ioctl() to modules To: Christoph Hellwig Cc: Al Viro , Miklos Szeredi , overlayfs , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 6:24 PM, Christoph Hellwig wrote: > On Mon, Jun 11, 2018 at 09:19:01AM +0200, Miklos Szeredi wrote: >> We don't. Obviously need to make sure to only ever do ioctl's in >> overlayfs that have a common definition across filesystems. Not a lot >> of those, luckily... > > Which are those? If they are common and possibly called from kernel > code they should probably be made into methods instead. FS_IOC* Haven't looked deeply. For now overlayfs just implements FS_IOC_{GET|SET}FLAGS because some of these flags are quite generic and implementing them on the overlay is easy. Yes, turning into a method makes sense. Thanks, Miklos