[PATCH 4.14 108/191] ramfs: fix nommu mmap with gaps in the page cache

2020-10-27 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit 50b7d85680086126d7bd91dae81d57d4cb1ab6b7 ] ramfs needs to check that pages are both physically contiguous and contiguous in the file. If the page cache happens to have, eg, page A for index 0 of the file, no page for index 1, and page A+1 for

[PATCH 5.9 511/757] ramfs: fix nommu mmap with gaps in the page cache

2020-10-27 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit 50b7d85680086126d7bd91dae81d57d4cb1ab6b7 ] ramfs needs to check that pages are both physically contiguous and contiguous in the file. If the page cache happens to have, eg, page A for index 0 of the file, no page for index 1, and page A+1 for

[PATCH 5.8 421/633] ramfs: fix nommu mmap with gaps in the page cache

2020-10-27 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit 50b7d85680086126d7bd91dae81d57d4cb1ab6b7 ] ramfs needs to check that pages are both physically contiguous and contiguous in the file. If the page cache happens to have, eg, page A for index 0 of the file, no page for index 1, and page A+1 for

[PATCH 5.4 256/408] ramfs: fix nommu mmap with gaps in the page cache

2020-10-27 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit 50b7d85680086126d7bd91dae81d57d4cb1ab6b7 ] ramfs needs to check that pages are both physically contiguous and contiguous in the file. If the page cache happens to have, eg, page A for index 0 of the file, no page for index 1, and page A+1 for

[PATCH 4.19 163/264] ramfs: fix nommu mmap with gaps in the page cache

2020-10-27 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit 50b7d85680086126d7bd91dae81d57d4cb1ab6b7 ] ramfs needs to check that pages are both physically contiguous and contiguous in the file. If the page cache happens to have, eg, page A for index 0 of the file, no page for index 1, and page A+1 for

Re: mountinfo contents changed when rootfs is ramfs

2020-08-21 Thread Pranay Srivastava
On Wed, Aug 19, 2020 at 5:20 PM Pranay Srivastava wrote: > > Hello, > > I'm running a system where rootfs is ramfs. For kernel version 5.2.11 > > # cat /proc/self/mountinfo > 0 0 0:1 / / rw - rootfs rootfs rw > %<---snip>% > > while for kernel 5.4.58 >

mountinfo contents changed when rootfs is ramfs

2020-08-19 Thread Pranay Srivastava
Hello, I'm running a system where rootfs is ramfs. For kernel version 5.2.11 # cat /proc/self/mountinfo 0 0 0:1 / / rw - rootfs rootfs rw %<---snip>% while for kernel 5.4.58 # cat /proc/self/mountinfo 0 0 0:1 / / rw - rootfs none rw %<---snip>% The reason for the above diff

[PATCH] fs/ramfs: add nfs-export support

2019-07-31 Thread Haodong Wong
Refer to tmpfs use inode number and generation number to construct the filehandle for nfs-export Without this patch, when run exportfs for nfs-kernel-server to export ramfs, it will report "not support NFS export" Signed-off-by: Haodong Wong --- fs/ramfs/in

Re: [PATCH] knfsd: add nfs-export support to ramfs

2019-07-20 Thread Barry Song
the subject is unsuitable? i mean the prefix should be fs/ramfs rather than knfsd? 2019-05-22 3:25 GMT+12:00, Haodong Wong : > Refer to tmpfs, use inode number and generation number > to construct the filehandle for nfs-export would you like to describe what is happening without this patch

[PATCH] knfsd: add nfs-export support to ramfs

2019-05-21 Thread Haodong Wong
Refer to tmpfs, use inode number and generation number to construct the filehandle for nfs-export Signed-off-by: Haodong Wong --- fs/ramfs/inode.c | 72 1 file changed, 72 insertions(+) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index

[RFC PATCH 41/68] vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount API

2019-03-27 Thread David Howells
Convert the ramfs, shmem, tmpfs, devtmpfs and rootfs filesystems to the new internal mount API as the old one will be obsoleted and removed. This allows greater flexibility in communication of mount parameters between userspace, the VFS and the filesystem. See Documentation/filesystems

[PATCH 38/38] tmpfs, devtmpfs, ramfs, rootfs: Convert to fs_context

2019-03-14 Thread David Howells
tmpfs changes, then devtmpfs and rootfs, which are wrappers around tmpfs or ramfs, must change too - and thus so must ramfs, so convert these also. Signed-off-by: David Howells cc: Hugh Dickins cc: linux...@kvack.org --- drivers/base/devtmpfs.c | 16 +- fs/ramfs/inode.c |

[PATCH -mm 2/2] proc: use ramfs for executable generation

2019-02-05 Thread Alexey Dobriyan
tmpfs is under CONFIG_TMPFS which can be disabled. ramfs is always enabled. Signed-off-by: Alexey Dobriyan --- fold into proc-test-proc-maps-smaps-smaps_rollup-statm.patch tools/testing/selftests/proc/proc-pid-vm.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a

[PATCH] ramfs: support O_TMPFILE

2019-02-05 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan --- fs/ramfs/inode.c | 12 1 file changed, 12 insertions(+) --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -145,6 +145,17 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * return error; } +static int

[PATCH 63/76] fs/ramfs: Use inode_sb() helper instead of inode->i_sb

2018-05-08 Thread Mark Fasheh
Signed-off-by: Mark Fasheh --- fs/ramfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 11201b2d06b9..57b78ae51ed1 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -101,7 +101,7 @@ struct inode *ramfs_get_inode

[PATCH 05/14] ramfs: Implement show_options

2017-07-05 Thread David Howells
Implement the show_options superblock op for ramfs as part of a bid to get rid of s_options and generic_show_options() to make it easier to implement a context-based mount where the mount options can be passed individually over a file descriptor. Signed-off-by: David Howells --- fs/ramfs

[PATCH] Clarify help text that compression applies to ramfs as well as legacy ramdisk.

2017-05-04 Thread Rob Landley
From: Rob Landley Clarify help text that compression applies to ramfs as well as legacy ramdisk. Signed-off-by: Rob Landley --- usr/Kconfig | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr/Kconfig b/usr/Kconfig index 572dcf7..d6f4633 100644 --- a/usr

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-09-20 Thread Andy Lutomirski
> On 09/20/16 18:07, H. Peter Anvin wrote: > > > >> - vvar is highly magical. IMO letting it get mapped with VM_MAYWRITE > >> is asking for trouble, as anything that writes it will COW it, leading > >> to strange malfunctions. > >> > > The vvar page obviously needs to be mapped MAP_SHARED, and th

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-09-20 Thread H. Peter Anvin
On 09/20/16 18:07, H. Peter Anvin wrote: > >> - vvar is highly magical. IMO letting it get mapped with VM_MAYWRITE >> is asking for trouble, as anything that writes it will COW it, leading >> to strange malfunctions. >> The vvar page obviously needs to be mapped MAP_SHARED, and the underlying f

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-09-20 Thread H. Peter Anvin
On 09/20/16 17:54, Andy Lutomirski wrote: > - If vvar is in the same inode, then that inode won't be a valid ELF > image, because the ELF header won't be in the right place. So the vvar ought to move into an actual ELF segment, which is probably The Right Thing anyway. > - vvar is highly magica

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-09-20 Thread Andy Lutomirski
On Tue, Sep 20, 2016 at 5:32 PM, H. Peter Anvin wrote: > On 09/20/16 17:22, H. Peter Anvin wrote: >> The more I'm thinking about this, why don't we simply have these (the >> various possible vdsos as well as vvar) as actual files in sysfs instead >> of introducing a new filesystem? I don't believ

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-09-20 Thread H. Peter Anvin
On 09/20/16 17:22, H. Peter Anvin wrote: > The more I'm thinking about this, why don't we simply have these (the > various possible vdsos as well as vvar) as actual files in sysfs instead > of introducing a new filesystem? I don't believe sysfs actually has to > be mounted in order for sysfs files

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-09-20 Thread H. Peter Anvin
The more I'm thinking about this, why don't we simply have these (the various possible vdsos as well as vvar) as actual files in sysfs instead of introducing a new filesystem? I don't believe sysfs actually has to be mounted in order for sysfs files to have an inode. It could also be in procfs, I

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-26 Thread Dmitry Safonov
2016-08-26 17:42 GMT+03:00 Dmitry Safonov <0x7f454...@gmail.com>: > 2016-08-26 17:32 GMT+03:00 Andy Lutomirski : >> On Fri, Aug 26, 2016 at 4:16 AM, Dmitry Safonov <0x7f454...@gmail.com> wrote: >>> 2016-08-26 2:00 GMT+03:00 H. Peter Anvin : On August 25, 2016 3:53:43 PM PDT, Dmitry Safonov <0x

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-26 Thread Dmitry Safonov
2016-08-26 17:32 GMT+03:00 Andy Lutomirski : > On Fri, Aug 26, 2016 at 4:16 AM, Dmitry Safonov <0x7f454...@gmail.com> wrote: >> 2016-08-26 2:00 GMT+03:00 H. Peter Anvin : >>> On August 25, 2016 3:53:43 PM PDT, Dmitry Safonov <0x7f454...@gmail.com> >>> wrote: 2016-08-25 23:49 GMT+03:00 H. Peter

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-26 Thread Andy Lutomirski
On Fri, Aug 26, 2016 at 4:16 AM, Dmitry Safonov <0x7f454...@gmail.com> wrote: > 2016-08-26 2:00 GMT+03:00 H. Peter Anvin : >> On August 25, 2016 3:53:43 PM PDT, Dmitry Safonov <0x7f454...@gmail.com> >> wrote: >>>2016-08-25 23:49 GMT+03:00 H. Peter Anvin : On August 25, 2016 8:21:07 AM PDT, Dm

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-26 Thread Dmitry Safonov
2016-08-26 2:00 GMT+03:00 H. Peter Anvin : > On August 25, 2016 3:53:43 PM PDT, Dmitry Safonov <0x7f454...@gmail.com> > wrote: >>2016-08-25 23:49 GMT+03:00 H. Peter Anvin : >>> On August 25, 2016 8:21:07 AM PDT, Dmitry Safonov >> wrote: This patches set is cleanly RFC and is not supposed to be

[RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-25 Thread Dmitry Safonov
This patches set is cleanly RFC and is not supposed to be applied. Also for RFC time it builds only on x86_64. So, in a mail thread Oleg told that it would be worth to introduce vm_file for vdso mappings as currently uprobes can not be placed on vDSO VMAs [1]. In this patches set I introduce in-ke

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-25 Thread H. Peter Anvin
On August 25, 2016 3:53:43 PM PDT, Dmitry Safonov <0x7f454...@gmail.com> wrote: >2016-08-25 23:49 GMT+03:00 H. Peter Anvin : >> On August 25, 2016 8:21:07 AM PDT, Dmitry Safonov > wrote: >>>This patches set is cleanly RFC and is not supposed to be applied. >>>Also for RFC time it builds only on x86

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-25 Thread Dmitry Safonov
2016-08-25 23:49 GMT+03:00 H. Peter Anvin : > On August 25, 2016 8:21:07 AM PDT, Dmitry Safonov > wrote: >>This patches set is cleanly RFC and is not supposed to be applied. >>Also for RFC time it builds only on x86_64. >> >>So, in a mail thread Oleg told that it would be worth to introduce >>vm_

Re: [RFC 0/3] Put vdso in ramfs-like filesystem (vdsofs)

2016-08-25 Thread H. Peter Anvin
On August 25, 2016 8:21:07 AM PDT, Dmitry Safonov wrote: >This patches set is cleanly RFC and is not supposed to be applied. >Also for RFC time it builds only on x86_64. > >So, in a mail thread Oleg told that it would be worth to introduce >vm_file >for vdso mappings as currently uprobes can not

[PATCH 57/71] ramfs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-20 Thread Kirill A. Shutemov
(); Signed-off-by: Kirill A. Shutemov --- fs/ramfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 38981b037524..1ab6e6c2e60e 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -223,8 +223,8 @@ int ramfs_fill_super(

[PATCH 6/8] fs: ramfs: Replace CURRENT_TIME by current_fs_time()

2016-02-22 Thread Deepa Dinamani
CURRENT_TIME macro is not appropriate for filesystems as it doesn't use the right granularity for filesystem timestamps. Use current_fs_time() instead. Signed-off-by: Deepa Dinamani Cc: Andrew Morton Cc: David Howells Cc: Michal Hocko --- fs/ramfs/inode.c | 13 - 1 file ch

[PATCH] fs: ramfs: mark once as __initdata

2015-12-01 Thread Rasmus Villemoes
There's no reason to keep this around after init. Signed-off-by: Rasmus Villemoes --- fs/ramfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 889d558b4e05..74afa43cced5 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/in

Re: inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2...

2015-03-20 Thread Dave Chinner
> We summarized our finding: > (* means what we believe is correct beahvoir) > > > ramfs affsfsplus > vfs xfs fat gfs2jffs2 hfsh > operation | * | | | | | | | | | &g

inconsistent timestamp update in rename() of xfs/fat/gfs2/ramfs/jffs2...

2015-03-20 Thread Taesoo Kim
21553 (ext3) 0b23076988b44b2c165e060248345de6f2337387 | ext3/4: fix update of mtime and ctime on rename - We summarized our finding: (* means what we believe is correct beahvoir) ramfs

[PATCH 38/56] fs/ramfs: support compiling out splice

2014-11-13 Thread Pieter Smith
Compile out splice support from ramfs when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Signed-off-by: Pieter Smith --- fs/ramfs/file-mmu.c | 4 ++-- fs/ramfs/file-nommu.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions

[PATCH 1/1] fs/ramfs/file-nommu.c: replace count*size kzalloc by kcalloc

2014-06-23 Thread Fabian Frederick
Cc: Axel Lin Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/ramfs/file-nommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index dda012a..bbafbde 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c

[RFC PATCH 04/11] ramfs: Add sub-filesystem data pointer to ram_fs_info

2014-05-14 Thread Seth Forshee
devtmpfs will use ramfs if tmpfs is not available, and it needs to store some data of its own. Add a sub_fs_data pointer to struct ram_fs_info and move the struct definition to the shared header, and export the relevant structs to give devtmpfs access to this pointer. Signed-off-by: Seth Forshee

[PATCH] fs/ramfs: don't use module_init for non-modular core code

2014-01-11 Thread Paul Gortmaker
The ramfs is always built in. It will never be modular, so using module_init as an alias for __initcall is rather misleading. Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously n

[PATCH 3.8 024/152] Revert "ima: policy for RAMFS"

2013-12-06 Thread Kamal Mostafa
3.8.13.14 -stable review patch. If anyone has any objections, please let me know. -- From: Mimi Zohar commit 08de59eb144d7c41351a467442f898d720f0f15f upstream. This reverts commit 4c2c392763a682354fac65b6a569adec4e4b5387. Everything in the initramfs should be measured and ap

[PATCH 3.5 50/90] Revert "ima: policy for RAMFS"

2013-12-05 Thread Luis Henriques
3.5.7.27 -stable review patch. If anyone has any objections, please let me know. -- From: Mimi Zohar commit 08de59eb144d7c41351a467442f898d720f0f15f upstream. This reverts commit 4c2c392763a682354fac65b6a569adec4e4b5387. Everything in the initramfs should be measured and app

[PATCH 3.4 21/39] Revert "ima: policy for RAMFS"

2013-11-26 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Mimi Zohar commit 08de59eb144d7c41351a467442f898d720f0f15f upstream. This reverts commit 4c2c392763a682354fac65b6a569adec4e4b5387. Everything in the initramfs should be measured and appraised,

[PATCH 3.10 29/80] Revert "ima: policy for RAMFS"

2013-11-26 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Mimi Zohar commit 08de59eb144d7c41351a467442f898d720f0f15f upstream. This reverts commit 4c2c392763a682354fac65b6a569adec4e4b5387. Everything in the initramfs should be measured and appraised

[PATCH 3.12 035/116] Revert "ima: policy for RAMFS"

2013-11-26 Thread Greg Kroah-Hartman
3.12-stable review patch. If anyone has any objections, please let me know. -- From: Mimi Zohar commit 08de59eb144d7c41351a467442f898d720f0f15f upstream. This reverts commit 4c2c392763a682354fac65b6a569adec4e4b5387. Everything in the initramfs should be measured and appraised

[PATCH 3.11 35/36] Revert "ima: policy for RAMFS"

2013-11-26 Thread Greg Kroah-Hartman
3.11-stable review patch. If anyone has any objections, please let me know. -- From: Mimi Zohar commit 08de59eb144d7c41351a467442f898d720f0f15f upstream. This reverts commit 4c2c392763a682354fac65b6a569adec4e4b5387. Everything in the initramfs should be measured and appraised

[PATCH] ramfs: nommu: Statize ramfs_nommu_get_unmapped_area and ramfs_nommu_mmap

2013-11-19 Thread Axel Lin
Since commit 853ac43ab194f "shmem: unify regular and tiny shmem", ramfs_nommu_get_unmapped_area() and ramfs_nommu_mmap() are not directly referenced outside of file-nommu.c. Thus make them static. Signed-off-by: Axel Lin --- fs/ramfs/file-nommu.c | 10 -- include/linux/ra

Re: [PATCH] ramfs: Fix memory leak on ramfs_fill_super error paths

2013-11-14 Thread Al Viro
On Thu, Nov 14, 2013 at 02:59:19PM +0800, Axel Lin wrote: > The memory leak was introduced by commit 318ceed0884 > "tidy up after d_make_root() conversion". No memory leaks there. Note that ->kill_sb() is called in *all* cases, so that kfree() will be done by it just fine. It's *not* ->put_super

Re: [PATCH] ramfs: Fix memory leak on ramfs_fill_super error paths

2013-11-14 Thread Kirill A. Shutemov
On Thu, Nov 14, 2013 at 02:59:19PM +0800, Axel Lin wrote: > The memory leak was introduced by commit 318ceed0884 > "tidy up after d_make_root() conversion". > > Signed-off-by: Axel Lin > --- > fs/ramfs/inode.c | 12 +--- > 1 file changed, 9 insertions(+),

[PATCH] ramfs: Fix memory leak on ramfs_fill_super error paths

2013-11-13 Thread Axel Lin
The memory leak was introduced by commit 318ceed0884 "tidy up after d_make_root() conversion". Signed-off-by: Axel Lin --- fs/ramfs/inode.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 39d1465..868a41e 10064

[PATCHv6 22/22] ramfs: enable transparent huge page cache

2013-09-23 Thread Kirill A. Shutemov
ramfs is the most simple fs from page cache point of view. Let's start transparent huge page cache enabling here. ramfs pages are not movable[1] and switching to transhuge pages doesn't affect that. We need to fix this eventually. [1] http://lkml.org/lkml/2013/4/2/720 Signed-off-by

[PATCH 23/23] ramfs: enable transparent huge page cache

2013-08-03 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" ramfs is the most simple fs from page cache point of view. Let's start transparent huge page cache enabling here. ramfs pages are not movable[1] and switching to transhuge pages doesn't affect that. We need to fix this eventually. [1] http://lk

Re: [PATCH 0/5] initmpfs v2: use tmpfs instead of ramfs for rootfs

2013-07-18 Thread H. Peter Anvin
On 07/17/2013 04:06 PM, Andrew Morton wrote: > On Tue, 16 Jul 2013 08:31:13 -0700 (PDT) Rob Landley wrote: > >> Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. >> Specify rootfstype=ramfs to get the old initramfs behavior. >> >> The previous init

Re: [PATCH 0/5] initmpfs v2: use tmpfs instead of ramfs for rootfs

2013-07-18 Thread Rob Landley
e: > > > Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. > > Specify rootfstype=ramfs to get the old initramfs behavior. > > > > The previous initramfs code provided a fairly crappy root filesystem: > > didn't let you --bind mount directori

Re: [PATCH 0/5] initmpfs v2: use tmpfs instead of ramfs for rootfs

2013-07-17 Thread Hugh Dickins
On Wed, 17 Jul 2013, Andrew Morton wrote: > On Tue, 16 Jul 2013 08:31:13 -0700 (PDT) Rob Landley wrote: > > > Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. > > Specify rootfstype=ramfs to get the old initramfs behavior. > > > > The previo

Re: [PATCH 0/5] initmpfs v2: use tmpfs instead of ramfs for rootfs

2013-07-17 Thread Andrew Morton
On Tue, 16 Jul 2013 08:31:13 -0700 (PDT) Rob Landley wrote: > Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. > Specify rootfstype=ramfs to get the old initramfs behavior. > > The previous initramfs code provided a fairly crappy root filesystem: > didn&#x

[PATCH 0/5] initmpfs v2: use tmpfs instead of ramfs for rootfs

2013-07-16 Thread Rob Landley
Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. Specify rootfstype=ramfs to get the old initramfs behavior. The previous initramfs code provided a fairly crappy root filesystem: didn't let you --bind mount directories out of it, reported zero size/usage so it didn't

[PATCH 3/5] initmpfs v2: Move rootfs code from fs/ramfs/ to init/

2013-07-16 Thread Rob Landley
From: Rob Landley When the rootfs code was a wrapper around ramfs, having them in the same file made sense. Now that it can wrap another filesystem type, move it in with the init code instead. This also allows a subsequent patch to access rootfstype= command line arg. Signed-off-by: Rob

[PATCH 0/5] initmpfs: use tmpfs instead of ramfs for rootfs

2013-06-29 Thread Rob Landley
Use tmpfs for rootfs when CONFIG_TMPFS=y and there's no root=. Specify rootfstype=ramfs to get the old initramfs behavior. The previous initramfs code provided a fairly crappy root filesystem: didn't let you --bind mount directories out of it, reported zero size/usage so it didn't

[PATCH 3/5] initmpfs: Move rootfs code from fs/ramfs/ to init/

2013-06-29 Thread Rob Landley
From: Rob Landley When the rootfs code was a wrapper around ramfs, having them in the same file made sense. Now that it can wrap another filesystem type, move it in with the init code instead. This also allows a subsequent patch to access rootfstype= command line arg. Signed-off-by: Rob

Re: [PATCHv4 26/39] ramfs: enable transparent huge page cache

2013-05-22 Thread Dave Hansen
On 05/22/2013 07:22 AM, Kirill A. Shutemov wrote: > Dave Hansen wrote: >>> + /* >>> + * TODO: make ramfs pages movable >>> +*/ >>> + mapping_set_gfp_mask(inode->i_mapping, >>> +

Re: [PATCHv4 26/39] ramfs: enable transparent huge page cache

2013-05-22 Thread Kirill A. Shutemov
Dave Hansen wrote: > On 05/11/2013 06:23 PM, Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > ramfs is the most simple fs from page cache point of view. Let's start > > transparent huge page cache enabling here. > > > > For n

Re: [PATCHv4 26/39] ramfs: enable transparent huge page cache

2013-05-21 Thread Dave Hansen
On 05/11/2013 06:23 PM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > ramfs is the most simple fs from page cache point of view. Let's start > transparent huge page cache enabling here. > > For now we allocate only non-movable huge page.

[PATCHv4 26/39] ramfs: enable transparent huge page cache

2013-05-11 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" ramfs is the most simple fs from page cache point of view. Let's start transparent huge page cache enabling here. For now we allocate only non-movable huge page. ramfs pages cannot be moved yet. Signed-off-by: Kirill A. Shutemov --- fs/ramfs

Re: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-05 Thread Christoph Lameter
On Fri, 5 Apr 2013, Minchan Kim wrote: > > >> How about add a knob? > > > > > >Maybe, volunteering? > > > > Hi Minchan, > > > > I can be the volunteer, what I care is if add a knob make sense? > > Frankly sepaking, I'd like to avoid new knob but there might be > some workloads suffered from mlocke

[PATCHv3, RFC 24/34] ramfs: enable transparent huge page cache

2013-04-05 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" ramfs is the most simple fs from page cache point of view. Let's start transparent huge page cache enabling here. For now we allocate only non-movable huge page. ramfs pages cannot be moved yet. Signed-off-by: Kirill A. Shutemov --- fs/ramfs

Re: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-05 Thread Minchan Kim
>> >On Tue, Apr 02, 2013 at 03:15:23PM -0700, Hugh Dickins wrote: > >> >>On Tue, 2 Apr 2013, Kirill A. Shutemov wrote: > >> >>>Kirill A. Shutemov wrote: > >> >>>>From: "Kirill A. Shutemov" > >> >>>> > &

Re: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-05 Thread Minchan Kim
: > >>>>From: "Kirill A. Shutemov" > >>>> > >>>>ramfs is the most simple fs from page cache point of view. Let's start > >>>>transparent huge page cache enabling here. > >>>> > >>>>For

Re: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-04 Thread Simon Jeons
Hi Minchan, On 04/03/2013 09:11 AM, Minchan Kim wrote: On Tue, Apr 02, 2013 at 03:15:23PM -0700, Hugh Dickins wrote: On Tue, 2 Apr 2013, Kirill A. Shutemov wrote: Kirill A. Shutemov wrote: From: "Kirill A. Shutemov" ramfs is the most simple fs from page cache point of view. L

RE: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-03 Thread Christoph Lameter
similar but different isolate_lru_page(). Well the naming could be cleaned up. The fundamental issue with migrating pages is that all references have to be tracked and updates in a way that no references can be followed to invalid or stale page contents. If ramfs does not maintain separate pointers but

Re: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-02 Thread Minchan Kim
On Tue, Apr 02, 2013 at 03:15:23PM -0700, Hugh Dickins wrote: > On Tue, 2 Apr 2013, Kirill A. Shutemov wrote: > > Kirill A. Shutemov wrote: > > > From: "Kirill A. Shutemov" > > > > > > ramfs is the most simple fs from page cache point of view.

RE: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-02 Thread Hugh Dickins
On Tue, 2 Apr 2013, Kirill A. Shutemov wrote: > Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > ramfs is the most simple fs from page cache point of view. Let's start > > transparent huge page cache enabling here. > > > > Fo

RE: [PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-04-02 Thread Kirill A. Shutemov
Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > ramfs is the most simple fs from page cache point of view. Let's start > transparent huge page cache enabling here. > > For now we allocate only non-movable huge page. It's not yet clear if > m

[PATCHv2, RFC 20/30] ramfs: enable transparent huge page cache

2013-03-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" ramfs is the most simple fs from page cache point of view. Let's start transparent huge page cache enabling here. For now we allocate only non-movable huge page. It's not yet clear if movable page is safe here and what need to be done to make it

[PATCH, RFC 16/16] ramfs: enable transparent huge page cache

2013-01-28 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" ramfs is the most simple fs from page cache point of view. Let's start transparent huge page cache enabling here. For now we allocate only non-movable huge page. It's not yet clear if movable page is safe here and what need to be done to make it

Re: [PATCH review 5/6] userns: Allow the userns root to mount ramfs.

2013-01-27 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > "Serge E. Hallyn" writes: > > > Quoting Eric W. Biederman (ebied...@xmission.com): > >> > >> There is no backing store to ramfs and file creation > >> rules are the same as for any other fi

Re: [PATCH review 5/6] userns: Allow the userns root to mount ramfs.

2013-01-27 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > > There is no backing store to ramfs and file creation > rules are the same as for any other filesystem so > it is semantically safe to allow unprivileged users > to mount it. > > The memory control group successfully lim

Re: [PATCH review 5/6] userns: Allow the userns root to mount ramfs.

2013-01-26 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > Quoting Eric W. Biederman (ebied...@xmission.com): >> >> There is no backing store to ramfs and file creation >> rules are the same as for any other filesystem so >> it is semantically safe to allow unprivileged users >> t

Re: [PATCH review 5/6] userns: Allow the userns root to mount ramfs.

2013-01-26 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > > There is no backing store to ramfs and file creation > rules are the same as for any other filesystem so > it is semantically safe to allow unprivileged users > to mount it. > > The memory control group successfully lim

[PATCH review 5/6] userns: Allow the userns root to mount ramfs.

2013-01-25 Thread Eric W. Biederman
There is no backing store to ramfs and file creation rules are the same as for any other filesystem so it is semantically safe to allow unprivileged users to mount it. The memory control group successfully limits how much memory ramfs can consume on any system that cares about a user namespace

[ 042/108] fs: ramfs: file-nommu: add SetPageUptodate()

2012-07-22 Thread Ben Hutchings
ff-by: Bob Liu Cc: Hugh Dickins Cc: David Howells Cc: Geert Uytterhoeven Cc: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- fs/ramfs/file-nommu.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/ramfs/file-nommu.c b/fs/ramf

[ 65/68] fs: ramfs: file-nommu: add SetPageUptodate()

2012-07-12 Thread Greg Kroah-Hartman
age(). Signed-off-by: Bob Liu Cc: Hugh Dickins Cc: David Howells Cc: Geert Uytterhoeven Cc: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/ramfs/file-nommu.c |1 + 1 file changed, 1 insertion(+) --- a/fs/ramfs/file-no

[ 185/187] fs: ramfs: file-nommu: add SetPageUptodate()

2012-07-12 Thread Greg Kroah-Hartman
age(). Signed-off-by: Bob Liu Cc: Hugh Dickins Cc: David Howells Cc: Geert Uytterhoeven Cc: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/ramfs/file-nommu.c |1 + 1 file changed, 1 insertion(+) --- a/fs/ramfs/file-no

[2.6 patch] fs/ramfs/ extern cleanup

2008-02-17 Thread Adrian Bunk
Adrian Bunk <[EMAIL PROTECTED]> --- fs/ramfs/file-mmu.c |3 +++ fs/ramfs/internal.h |1 - 2 files changed, 3 insertions(+), 1 deletion(-) 157e8cf4ac47a1f31fb68273f09425fcbf7dbb0d diff --git a/fs/ramfs/file-mmu.c b/fs/ramfs/file-mmu.c index b41a514..9590b90 100644 --- a/fs/ramfs/file

[patch 13/19] ramfs pages are non-reclaimable

2008-01-08 Thread Rik van Riel
V3 -> V4: + drivers/block/rd.c was replaced by brd.c in 24-rc4-mm1. Update patch to add brd_open() to mark mapping as nonreclaimable V2 -> V3: + rebase to 23-mm1 atop RvR's split LRU series [no changes] V1 -> V2: + add ramfs pages to this class of non-reclaimable pages by

[patch 13/19] ramfs pages are non-reclaimable

2008-01-02 Thread linux-kernel
V3 -> V4: + drivers/block/rd.c was replaced by brd.c in 24-rc4-mm1. Update patch to add brd_open() to mark mapping as nonreclaimable V2 -> V3: + rebase to 23-mm1 atop RvR's split LRU series [no changes] V1 -> V2: + add ramfs pages to this class of non-reclaimable pages by

[patch 15/20] ramfs pages are non-reclaimable

2007-12-18 Thread Rik van Riel
V2 -> V3: + rebase to 23-mm1 atop RvR's split LRU series [no changes] V1 -> V2: + add ramfs pages to this class of non-reclaimable pages by marking ramfs address_space [mapping] as non-reclaimble. Christoph Lameter pointed out that ram disk pages also clutter the LRU lists.

Re: [PATCH][REFERENCE ONLY] 9p: ramfs 9p server

2007-11-02 Thread Chris Snook
Latchesar Ionkov wrote: Sample ramfs file server that uses the in-kernel 9P file server support. This code is for reference only. Reference code generally goes in Documentation/ -- Chris - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

[PATCH][REFERENCE ONLY] 9p: ramfs 9p server

2007-11-02 Thread Latchesar Ionkov
Sample ramfs file server that uses the in-kernel 9P file server support. This code is for reference only. Signed-off-by: Latchesar Ionkov <[EMAIL PROTECTED]> --- net/9p/Kconfig |8 +- net/9p/Makefile |1 + net/9p/ramfs/ramfs.c

[PATCH 06/52] CRED: Prepare RAMFS for cred passing

2007-10-12 Thread David Howells
Prepare RAMFS for cred passing. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/ramfs/inode.c | 16 ++-- include/linux/ramfs.h |3 ++- mm/tiny-shmem.c |3 ++- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/fs/ramfs/inode.c b/fs

[RFC][REFERENCE ONLY] 9p: 9P ramfs sample implementation

2007-09-30 Thread Latchesar Ionkov
Sample ramfs file server that uses the 9P in-kernel server implementation. This code is for reference only, it is not supposed to be merged into the kernel. Signed-off-by: Latchesar Ionkov <[EMAIL PROTECTED]> --- net/9p/srv/Kconfig |6 + net/9p/srv/Makefile |4 + net/9p/srv/r

[33/41] Large blocksize support in ramfs

2007-09-10 Thread Christoph Lameter
The simplest file system to use for large blocksize support is ramfs. Note that ramfs does not use the lower layers (buffer I/O etc) so this case is useful for initial testing of changes to large buffer size support if one just wants to exercise the higher layers. The patch adds the ability to

[33/36] Large blocksize support in ramfs

2007-08-28 Thread clameter
The simplest file system to use for large blocksize support is ramfs. Note that ramfs does not use the lower layers (buffer I/O etc) so this case is useful for initial testing of changes to large buffer size support if one just wants to exercise the higher layers. The patch adds the ability to

[PATCH] Remove valueless definition of hard-selected RAMFS option.

2007-08-27 Thread Robert P. J. Day
Since CONFIG_RAMFS is currently hard-selected to "y", and since Documentation/filesystems/ramfs-rootfs-initramfs.txt reads as follows: "The amount of code required to implement ramfs is tiny, because all the work is done by the existing Linux caching infrastructure. Basically,

Re: [PATCH] FS: Make RAMFS both selectable and tristate.

2007-08-25 Thread Al Viro
On Sat, Aug 25, 2007 at 05:40:00PM -0400, Robert P. J. Day wrote: > On Sat, 25 Aug 2007, Al Viro wrote: > > > On Sat, Aug 25, 2007 at 03:40:23PM -0400, Robert P. J. Day wrote: > > > > > > Allow RAMFS to be user-selectable, and to be built as a module. > > >

Re: [PATCH] FS: Make RAMFS both selectable and tristate.

2007-08-25 Thread Robert P. J. Day
On Sat, 25 Aug 2007, Al Viro wrote: > On Sat, Aug 25, 2007 at 03:40:23PM -0400, Robert P. J. Day wrote: > > > > Allow RAMFS to be user-selectable, and to be built as a module. > > > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> > > > > --- &

Re: [PATCH] FS: Make RAMFS both selectable and tristate.

2007-08-25 Thread Robert P. J. Day
On Sat, 25 Aug 2007, Al Viro wrote: > On Sat, Aug 25, 2007 at 03:40:23PM -0400, Robert P. J. Day wrote: > > > > Allow RAMFS to be user-selectable, and to be built as a module. > > > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> > > > > --- &

Re: [PATCH] FS: Make RAMFS both selectable and tristate.

2007-08-25 Thread Al Viro
On Sat, Aug 25, 2007 at 03:40:23PM -0400, Robert P. J. Day wrote: > > Allow RAMFS to be user-selectable, and to be built as a module. > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> > > --- > > given that the help content for that option suggests it

[PATCH] FS: Make RAMFS both selectable and tristate.

2007-08-25 Thread Robert P. J. Day
Allow RAMFS to be user-selectable, and to be built as a module. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- given that the help content for that option suggests it can be built as a module, it just makes sense to make it selectable and tristate, unless someone has a comp

Re: [34/37] Large blocksize support in ramfs

2007-06-20 Thread Christoph Lameter
to make it as simple as possible. The patch is primarily useful as a debugging aid since it eliminates the lower layers from the game. I think ramfs should be left as is sine it is intended as a minimal implementation that should stay simpl. If we really want such an option for good then it may be

  1   2   3   4   >