Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1588021 > unrolled thread

[PATCH 0/3] fs: Support compiling out the pivot_root syscall

Started bybosrsf04@gmail.com
First post2017-02-25 01:30 +0100
Last post2017-02-25 16:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/3] fs: Support compiling out the pivot_root syscall bosrsf04@gmail.com - 2017-02-25 01:30 +0100
    Re: [PATCH 0/3] fs: Support compiling out the pivot_root syscall Nicolas Pitre <nicolas.pitre@linaro.org> - 2017-02-25 16:20 +0100

#1588021 — [PATCH 0/3] fs: Support compiling out the pivot_root syscall

Frombosrsf04@gmail.com
Date2017-02-25 01:30 +0100
Subject[PATCH 0/3] fs: Support compiling out the pivot_root syscall
Message-ID<teypk-86z-7@gated-at.bofh.it>
From: Brian Ashworth <bosrsf04@gmail.com>

This patch series will allow for the pivot_root syscall to be made
optional. The first patch refactors the functions that are required
by pivot_root so they can be accessed outside of fs/namespace.c. The
second patch moves the pivot_root syscall to its own file. The third
adds a Kconfig option and conditional compilation to the Makefile.

The pivot_root syscall is not needed on systems that do not use
any intermediate filesystem. Allowing for pivot_root to be
ommitted from the kernel will aid in the tinification efforts.

Brian Ashworth (3):
  Makes functions used by pivot_root accessible
  Extracts pivot_root so it can be made optional
  Allows for the pivot_root syscall to be omitted

 fs/Makefile     |   2 +
 fs/mount.h      |  24 +++++++++
 fs/namespace.c  | 150 +++-----------------------------------------------------
 fs/pivot_root.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++
 init/Kconfig    |  10 ++++
 kernel/sys_ni.c |   1 +
 6 files changed, 172 insertions(+), 144 deletions(-)
 create mode 100644 fs/pivot_root.c

-- 
2.11.1

[toc] | [next] | [standalone]


#1588147

FromNicolas Pitre <nicolas.pitre@linaro.org>
Date2017-02-25 16:20 +0100
Message-ID<teMiB-1iP-5@gated-at.bofh.it>
In reply to#1588021
On Fri, 24 Feb 2017, bosrsf04@gmail.com wrote:

> From: Brian Ashworth <bosrsf04@gmail.com>
> 
> This patch series will allow for the pivot_root syscall to be made
> optional. The first patch refactors the functions that are required
> by pivot_root so they can be accessed outside of fs/namespace.c. The
> second patch moves the pivot_root syscall to its own file. The third
> adds a Kconfig option and conditional compilation to the Makefile.
> 
> The pivot_root syscall is not needed on systems that do not use
> any intermediate filesystem. Allowing for pivot_root to be
> ommitted from the kernel will aid in the tinification efforts.

This looks good.  Every such tiny bits count, and besides the size 
reduction possibility this also makes the code clearer.

Acked-by: Nicolas Pitre <nico@linaro.org>

> Brian Ashworth (3):
>   Makes functions used by pivot_root accessible
>   Extracts pivot_root so it can be made optional
>   Allows for the pivot_root syscall to be omitted
> 
>  fs/Makefile     |   2 +
>  fs/mount.h      |  24 +++++++++
>  fs/namespace.c  | 150 +++-----------------------------------------------------
>  fs/pivot_root.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++
>  init/Kconfig    |  10 ++++
>  kernel/sys_ni.c |   1 +
>  6 files changed, 172 insertions(+), 144 deletions(-)
>  create mode 100644 fs/pivot_root.c
> 
> -- 
> 2.11.1
> 
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web