Received: by 10.223.164.202 with SMTP id h10csp59293wrb; Fri, 10 Nov 2017 02:33:49 -0800 (PST) X-Google-Smtp-Source: ABhQp+SQLXO3Abuv1BWGA/Ehvlz/s4obOG7Ar0ZMQZAbZmCQShbnNsdr0QTm+wVb1J+YFGnmj6oU X-Received: by 10.98.141.65 with SMTP id z62mr3956711pfd.186.1510310029745; Fri, 10 Nov 2017 02:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510310029; cv=none; d=google.com; s=arc-20160816; b=KpaGMJ9pwJl/uJMh7bCudfsuYq0PJ4/nUnapoRZ4phF9tWywwgkksgtVJigtLhMonJ hrPVAa0p4DIomQJlHsLwriE95an2fqEWP9ha6T/oxCMGMZF7rH2+Djhx+8lCDPAHz7IT e4bgIFxuuQvKVu1IBHvoMf1aeNaOcxnEbMvzHwdlZYBBNH99vUSG6ilNA6tnxX9O1Ka0 ziXA2ACuM7CkQ/SHueVlmcEhJhkHk4gO9t6QffP5ev4+5xNuANdU3jRQ2yHhXSI0ouLc FVb5TNqAkbkiiR4JId3D+UyzPqSbygaONTRDXIERpGujts6RxJzE9dtb1n2r2gyudkhZ jeKA== 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=+ig47j+Vav7n1j8TP5K4CQFq0TRn9/nS9cWVP+Y9WJM=; b=W4JQjelMaUE7HWr2M2AnjSdGjkLlHaOVM+mvVYhzOvw5n36D0m5wtZ3q2xxXswCzur rIxTwb6+oXMrjfnkV2/Cneb1o2LcGahMKfNJeWT9g9gnUcnJk/XZemYNZfjSty7eHIw0 mpjuQlsxzT+Im8w4lOayLjmieLa3eAkzMMCUF4QnyJoDtd0013igF0NSRiRdYctT3aSZ gBz4SCQ/7Calvibdn4kK5VMIxJ7sETbgN8dwwbSp7AfowK+hVJvgkXec7BFWRQSMJPTv uv0hzaqspiUTSqhhwV40CU0+RrP1mfDs10OGF++IaDXHrrqJK1N1oe4jg970O2MCgnxe NcDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GiKE8CsV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n22si8503614pgc.652.2017.11.10.02.33.37; Fri, 10 Nov 2017 02:33:49 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=GiKE8CsV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbdKJKc7 (ORCPT + 82 others); Fri, 10 Nov 2017 05:32:59 -0500 Received: from mail-qk0-f172.google.com ([209.85.220.172]:46917 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbdKJKc4 (ORCPT ); Fri, 10 Nov 2017 05:32:56 -0500 Received: by mail-qk0-f172.google.com with SMTP id o6so11313108qkh.3; Fri, 10 Nov 2017 02:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+ig47j+Vav7n1j8TP5K4CQFq0TRn9/nS9cWVP+Y9WJM=; b=GiKE8CsV+dggcxwimj4ToG1uk5gzxLCT9BlHtehhUrRq+yvgpYEZTHEaHn8LTv3V+H xFnvAqeKDQIe0Xt9+oL07uuaNs/XjAPcQwNpQxU0gyueKjTcZt70gNK2xfxEaGyHhSYJ 1LIVHksN5q6IMW3z2hzSDmf5s3Be5e7OQeDOsttISKKGni+kCxUTEUVf853AAPl+5MnW 5JM7Vz69OoSStWS1ceExod9SLjbHpEjQSLgdfsGQQlHvCFrDIZyTaTZQG1U1WaZS5Zbl uLGdB/CZQyKUHPUPE3IIEkmYpJDx1Gm75lhCtL78GdksneIy93Ql8Ffh+c3E9AWKnbv4 K/gQ== 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=+ig47j+Vav7n1j8TP5K4CQFq0TRn9/nS9cWVP+Y9WJM=; b=CDHLPOPxDASwAAFwt2rV3ENAjNxm2TY5umJfdWL99xXk1QRvwxScEHytqzEbTmGvZD TZ7H3u5El/irMi+fhbCWb0FNh/h9yLjddVkm/YnVlWdSd1BL/Fx+Y2le4XAOBB6wFmgG +Y6tzDpaQdBk2BW9KOL/7EwDkcm2ljXQKbiCwMUM3XT8iLgnh7mTY+y6nyrw8tr+jm3C dwwAXD1rscQE2zfkJSLgQyLRxoHeJceLt4555J2zg1IAAHZu+ICboXklpwg+ic63c8sY Gi1btT9ZaOO2eMRKtHM/xa45mBVC06s0MIKm5eXlcf6lX4cYzalNJV3lX3S/DWIeArjl HEig== X-Gm-Message-State: AJaThX5ZzwFhvthgGw+BbLVOTK5LRDhzH94gKhbalJvTWUgEvcIwD+qn S5YBeEUdve5N+tROpA4lMSSNraKHnUXWY6NonA8= X-Received: by 10.55.147.2 with SMTP id v2mr5791226qkd.112.1510309975886; Fri, 10 Nov 2017 02:32:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.102.80 with HTTP; Fri, 10 Nov 2017 02:32:55 -0800 (PST) In-Reply-To: References: <1510244046-3256-1-git-send-email-tixxdz@gmail.com> <1510244046-3256-2-git-send-email-tixxdz@gmail.com> From: Djalal Harouni Date: Fri, 10 Nov 2017 11:32:55 +0100 Message-ID: Subject: Re: [PATCH RFC v3 1/7] proc: add proc_fs_info struct to store proc information To: Alexey Dobriyan Cc: Kees Cook , Alexey Gladkov , Andy Lutomirski , Andrew Morton , Linux FS Devel , linux-kernel , kernel-hardening@lists.openwall.com, LSM List , Linux API , Greg Kroah-Hartman , Alexander Viro , Akinobu Mita , "Tobin C. Harding" , Oleg Nesterov , Jeff Layton , Ingo Molnar , "Eric W. Biederman" , Linus Torvalds , Daniel Micay , Jonathan Corbet , "J. Bruce Fields" , Stephen Rothwell , Solar Designer 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 Fri, Nov 10, 2017 at 11:26 AM, Alexey Dobriyan wrote: > On 11/9/17, Djalal Harouni wrote: > >> +struct proc_fs_info { >> + struct pid_namespace *pid_ns; >> +}; > >> +static inline struct proc_fs_info *proc_sb(struct super_block *sb) >> +{ >> + return sb->s_fs_info; >> +} > > Can you rename this to "struct proc_super_block *" then? > That "info" suffix all over filesystems doesn't add much info itself > just more typing. > Ditto for "fs_info" identifiers. Ok, will do. >> +extern inline struct proc_fs_info *proc_sb(struct super_block *sb) >> { return NULL;} > > extern inline? Oups, sorry will fix it and try to compile without proc. Thank you! -- tixxdz From 1583674520550827819@xxx Fri Nov 10 10:28:35 +0000 2017 X-GM-THRID: 1583606009222345701 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread