On Mon, Jun 11, 2018 at 11:15:55AM +0200, Miklos Szeredi wrote:
> On Sun, Jun 10, 2018 at 8:02 AM, Al Viro wrote:
> > On Sun, Jun 10, 2018 at 06:49:10AM +0100, Al Viro wrote:
> >> On Tue, May 29, 2018 at 04:41:41PM +0200, Miklos Szeredi wrote:
> >> > From: Miklos Sz
On Sun, Jun 10, 2018 at 8:02 AM, Al Viro wrote:
> On Sun, Jun 10, 2018 at 06:49:10AM +0100, Al Viro wrote:
>> On Tue, May 29, 2018 at 04:41:41PM +0200, Miklos Szeredi wrote:
>> > From: Miklos Szeredi
>> >
>> > Split out common helper for race free insertio
On Sun, Jun 10, 2018 at 8:02 AM, Al Viro wrote:
> On Sun, Jun 10, 2018 at 06:49:10AM +0100, Al Viro wrote:
>> On Tue, May 29, 2018 at 04:41:41PM +0200, Miklos Szeredi wrote:
>> > From: Miklos Szeredi
>> >
>> > Split out common helper for race free insertio
On Sun, Jun 10, 2018 at 7:54 AM, Al Viro wrote:
> On Fri, Jun 08, 2018 at 11:52:08PM -0700, Christoph Hellwig wrote:
>> On Fri, Jun 08, 2018 at 02:13:30PM +0200, Miklos Szeredi wrote:
>> > Hi Linus,
>> >
>> > Please pull from:
>> >
>> >
On Sun, Jun 10, 2018 at 7:54 AM, Al Viro wrote:
> On Fri, Jun 08, 2018 at 11:52:08PM -0700, Christoph Hellwig wrote:
>> On Fri, Jun 08, 2018 at 02:13:30PM +0200, Miklos Szeredi wrote:
>> > Hi Linus,
>> >
>> > Please pull from:
>> >
>> >
On Sun, Jun 10, 2018 at 7:42 AM, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:15PM +0200, Miklos Szeredi wrote:
>> In the common case we can just use the real file cached in
>> file->private_data. There are two exceptions:
>>
>> 1) File has been copied up since
On Sun, Jun 10, 2018 at 7:42 AM, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:15PM +0200, Miklos Szeredi wrote:
>> In the common case we can just use the real file cached in
>> file->private_data. There are two exceptions:
>>
>> 1) File has been copied up since
On Sun, Jun 10, 2018 at 7:31 AM, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:23PM +0200, Miklos Szeredi wrote:
>> Signed-off-by: Miklos Szeredi
>> ---
>> fs/overlayfs/file.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/fs/overlayf
On Sun, Jun 10, 2018 at 7:31 AM, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:23PM +0200, Miklos Szeredi wrote:
>> Signed-off-by: Miklos Szeredi
>> ---
>> fs/overlayfs/file.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/fs/overlayf
On Sun, Jun 10, 2018 at 06:24:59AM +0100, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:19PM +0200, Miklos Szeredi wrote:
> > Implement stacked mmap.
> >
> > Signed-off-by: Miklos Szeredi
> > ---
> > fs/overlayfs/file.c | 28
&
On Sun, Jun 10, 2018 at 06:24:59AM +0100, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:19PM +0200, Miklos Szeredi wrote:
> > Implement stacked mmap.
> >
> > Signed-off-by: Miklos Szeredi
> > ---
> > fs/overlayfs/file.c | 28
&
On Sun, Jun 10, 2018 at 6:57 AM, Al Viro wrote:
> On Mon, Jun 04, 2018 at 01:49:04AM -0700, Christoph Hellwig wrote:
>> On Tue, May 29, 2018 at 04:43:07PM +0200, Miklos Szeredi wrote:
>> > This is needed by the stacked ioctl implementation in overlayfs.
>>
>> E
On Sun, Jun 10, 2018 at 6:57 AM, Al Viro wrote:
> On Mon, Jun 04, 2018 at 01:49:04AM -0700, Christoph Hellwig wrote:
>> On Tue, May 29, 2018 at 04:43:07PM +0200, Miklos Szeredi wrote:
>> > This is needed by the stacked ioctl implementation in overlayfs.
>>
>> E
On Sun, Jun 10, 2018 at 6:13 AM, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:14PM +0200, Miklos Szeredi wrote:
>> Implement file operations on a regular overlay file. The underlying file
>> is opened separately and cached in ->private_data.
>>
>> It migh
On Sun, Jun 10, 2018 at 6:13 AM, Al Viro wrote:
> On Tue, May 29, 2018 at 04:43:14PM +0200, Miklos Szeredi wrote:
>> Implement file operations on a regular overlay file. The underlying file
>> is opened separately and cached in ->private_data.
>>
>> It migh
of breaking existing setups. So added infrastruture
that allows to skip accounting an open file in nr_files. I don't much like
this, but can't see any other way of keeping backward compatibility.
There are two conflicts when merging, attaching my resolution.
Thanks,
Miklos
---
Miklos Szeredi (37
of breaking existing setups. So added infrastruture
that allows to skip accounting an open file in nr_files. I don't much like
this, but can't see any other way of keeping backward compatibility.
There are two conflicts when merging, attaching my resolution.
Thanks,
Miklos
---
Miklos Szeredi (37
On Fri, May 25, 2018 at 2:06 AM, David Howells wrote:
> Implement a filesystem context concept to be used during superblock
> creation for mount and superblock reconfiguration for remount.
>
> The mounting procedure then becomes:
>
> (1) Allocate new fs_context context.
>
> (2) Configure the
On Fri, May 25, 2018 at 2:06 AM, David Howells wrote:
> Implement a filesystem context concept to be used during superblock
> creation for mount and superblock reconfiguration for remount.
>
> The mounting procedure then becomes:
>
> (1) Allocate new fs_context context.
>
> (2) Configure the
: create helper ovl_create_temp()
ovl: use inode_insert5() to hash a newly created inode
Miklos Szeredi (5):
ovl: Kconfig documentation fixes
ovl: return dentry from ovl_create_real()
ovl: return EIO on internal error
ovl: clean up copy-up error paths
vfs: factor out
: create helper ovl_create_temp()
ovl: use inode_insert5() to hash a newly created inode
Miklos Szeredi (5):
ovl: Kconfig documentation fixes
ovl: return dentry from ovl_create_real()
ovl: return EIO on internal error
ovl: clean up copy-up error paths
vfs: factor out
outside of init_user_ns
fuse: Ensure posix acls are translated outside of init_user_ns
fuse: Allow fully unprivileged mounts
Miklos Szeredi (5):
fuse: atomic_o_trunc should truncate pagecache
fuse: honor AT_STATX_DONT_SYNC
fuse: honor AT_STATX_FORCE_SYNC
fuse: add
outside of init_user_ns
fuse: Ensure posix acls are translated outside of init_user_ns
fuse: Allow fully unprivileged mounts
Miklos Szeredi (5):
fuse: atomic_o_trunc should truncate pagecache
fuse: honor AT_STATX_DONT_SYNC
fuse: honor AT_STATX_FORCE_SYNC
fuse: add
On Mon, Jun 4, 2018 at 10:48 AM, Christoph Hellwig wrote:
> On Tue, May 29, 2018 at 04:43:06PM +0200, Miklos Szeredi wrote:
>> This is needed by overlayfs to be able to copy up a file from a read-only
>> lower layer to a writable layer when being mapped shared. When copying u
On Mon, Jun 4, 2018 at 10:48 AM, Christoph Hellwig wrote:
> On Tue, May 29, 2018 at 04:43:06PM +0200, Miklos Szeredi wrote:
>> This is needed by overlayfs to be able to copy up a file from a read-only
>> lower layer to a writable layer when being mapped shared. When copying u
On Mon, Jun 4, 2018 at 7:35 PM, Al Viro wrote:
> On Mon, Jun 04, 2018 at 10:16:30AM -0700, Matthew Wilcox wrote:
>> On Sun, Jun 03, 2018 at 01:55:37AM +0100, Al Viro wrote:
>> > +SYSCALL_DEFINE3(open_tree, int, dfd, const char *, filename, unsigned,
>> > flags)
>> > +{
>> > + struct file
On Mon, Jun 4, 2018 at 7:35 PM, Al Viro wrote:
> On Mon, Jun 04, 2018 at 10:16:30AM -0700, Matthew Wilcox wrote:
>> On Sun, Jun 03, 2018 at 01:55:37AM +0100, Al Viro wrote:
>> > +SYSCALL_DEFINE3(open_tree, int, dfd, const char *, filename, unsigned,
>> > flags)
>> > +{
>> > + struct file
On Mon, Jun 4, 2018 at 5:52 PM, Al Viro wrote:
> On Mon, Jun 04, 2018 at 12:34:44PM +0200, Miklos Szeredi wrote:
>
>> fsopen = create fsfd
>> fsmount = fsfd -> mountfd & set attr on mountfd & attach mountfd
>> fspick = path -> fsfd
>> move_mount = atta
On Mon, Jun 4, 2018 at 5:52 PM, Al Viro wrote:
> On Mon, Jun 04, 2018 at 12:34:44PM +0200, Miklos Szeredi wrote:
>
>> fsopen = create fsfd
>> fsmount = fsfd -> mountfd & set attr on mountfd & attach mountfd
>> fspick = path -> fsfd
>> move_mount = atta
On Sun, Jun 3, 2018 at 2:55 AM, Al Viro wrote:
> On Sat, Jun 02, 2018 at 06:49:58PM +0100, Al Viro wrote:
>
>> > > Hell, might even add AT_UMOUNT for "open root and detach, to be
>> > > dissolved on
>> > > close", incompatible with AT_CLONE.
>> >
>> > Cute. Guess you could do:
>> >
>> > fd
On Sun, Jun 3, 2018 at 2:55 AM, Al Viro wrote:
> On Sat, Jun 02, 2018 at 06:49:58PM +0100, Al Viro wrote:
>
>> > > Hell, might even add AT_UMOUNT for "open root and detach, to be
>> > > dissolved on
>> > > close", incompatible with AT_CLONE.
>> >
>> > Cute. Guess you could do:
>> >
>> > fd
On Mon, Jun 4, 2018 at 10:47 AM, Christoph Hellwig wrote:
> On Tue, May 29, 2018 at 04:43:05PM +0200, Miklos Szeredi wrote:
>> Stacking file operations in overlay will store an extra open file for each
>> overlay file opened.
>>
>> The overhead is just that of &
On Mon, Jun 4, 2018 at 10:47 AM, Christoph Hellwig wrote:
> On Tue, May 29, 2018 at 04:43:05PM +0200, Miklos Szeredi wrote:
>> Stacking file operations in overlay will store an extra open file for each
>> overlay file opened.
>>
>> The overhead is just that of &
On Fri, Jun 1, 2018 at 6:18 PM, Randy Dunlap wrote:
> On 06/01/2018 08:26 AM, Miklos Szeredi wrote:
>> On Tue, May 29, 2018 at 03:21:48PM +0200, Miklos Szeredi wrote:
>>> Hi Al,
>>>
>>> I'm sending this pull request to you instead of Linus, because a bigger t
On Fri, Jun 1, 2018 at 6:18 PM, Randy Dunlap wrote:
> On 06/01/2018 08:26 AM, Miklos Szeredi wrote:
>> On Tue, May 29, 2018 at 03:21:48PM +0200, Miklos Szeredi wrote:
>>> Hi Al,
>>>
>>> I'm sending this pull request to you instead of Linus, because a bigger t
On Tue, May 29, 2018 at 03:21:48PM +0200, Miklos Szeredi wrote:
> Hi Al,
>
> I'm sending this pull request to you instead of Linus, because a bigger than
> usual chunk involves the VFS.
>
> Please pull from:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/m
On Tue, May 29, 2018 at 03:21:48PM +0200, Miklos Szeredi wrote:
> Hi Al,
>
> I'm sending this pull request to you instead of Linus, because a bigger than
> usual chunk involves the VFS.
>
> Please pull from:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/m
On Fri, Jun 1, 2018 at 11:24 AM, Stefan Hajnoczi wrote:
> Ping?
>
> Archive link in case I broke email threading:
> https://marc.info/?l=linux-fsdevel=152719324102009=2
Thanks for the patch. Should already be fixed in:
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-next
On Fri, Jun 1, 2018 at 11:24 AM, Stefan Hajnoczi wrote:
> Ping?
>
> Archive link in case I broke email threading:
> https://marc.info/?l=linux-fsdevel=152719324102009=2
Thanks for the patch. Should already be fixed in:
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-next
On Tue, May 29, 2018 at 4:04 PM, Eric W. Biederman
wrote:
>
> Now that the fuse and the vfs work is complete. Allow the fuse filesystem
> to be mounted by the root user in a user namespace.
Thanks, pushed to for-next branch of the fuse tree toghether with the xattr fix.
Miklos
On Tue, May 29, 2018 at 4:04 PM, Eric W. Biederman
wrote:
>
> Now that the fuse and the vfs work is complete. Allow the fuse filesystem
> to be mounted by the root user in a user namespace.
Thanks, pushed to for-next branch of the fuse tree toghether with the xattr fix.
Miklos
On Sat, Apr 28, 2018 at 4:29 AM, Tetsuo Handa
wrote:
> From 9f41081f8bd6762a6f629e5e23e6d07a62bba69c Mon Sep 17 00:00:00 2001
> From: Tetsuo Handa
> Date: Sat, 28 Apr 2018 11:24:09 +0900
> Subject: [PATCH] fuse: don't keep inode-less dentry at fuse_ctl_add_dentry().
>
> syzbot is reporting NULL
On Sat, Apr 28, 2018 at 4:29 AM, Tetsuo Handa
wrote:
> From 9f41081f8bd6762a6f629e5e23e6d07a62bba69c Mon Sep 17 00:00:00 2001
> From: Tetsuo Handa
> Date: Sat, 28 Apr 2018 11:24:09 +0900
> Subject: [PATCH] fuse: don't keep inode-less dentry at fuse_ctl_add_dentry().
>
> syzbot is reporting NULL
On Wed, May 30, 2018 at 4:30 PM, Vivek Goyal wrote:
> On Tue, May 29, 2018 at 04:45:59PM +0200, Miklos Szeredi wrote:
>> From: Vivek Goyal
>>
>> ovl_open() should open file which contains data and not open metacopy
>> inode. With the introduction of me
On Wed, May 30, 2018 at 4:30 PM, Vivek Goyal wrote:
> On Tue, May 29, 2018 at 04:45:59PM +0200, Miklos Szeredi wrote:
>> From: Vivek Goyal
>>
>> ovl_open() should open file which contains data and not open metacopy
>> inode. With the introduction of me
gt;sb).
>>
>> Drop fc->connected conditional to avoid leaking congestion states.
>>
>> Signed-off-by: Tejun Heo
>> Reported-by: Joshua Miller
>> Cc: Johannes Weiner
>> Cc: Miklos Szeredi
>> Cc: Jan Kara
>> Cc: sta...@vger.kernel.org
>
> Y
gt;sb).
>>
>> Drop fc->connected conditional to avoid leaking congestion states.
>>
>> Signed-off-by: Tejun Heo
>> Reported-by: Joshua Miller
>> Cc: Johannes Weiner
>> Cc: Miklos Szeredi
>> Cc: Jan Kara
>> Cc: sta...@vger.kernel.org
>
> Y
On Tue, May 29, 2018 at 4:12 PM, Miklos Szeredi wrote:
> On Tue, May 29, 2018 at 3:59 PM, Christoph Hellwig wrote:
>>> vfs: export vfs_dedupe_file_range_one() to modules
>>
>> Please use EXPORT_SYMBOL_GPL for all these crazy low-level exports.
I'd arg
On Tue, May 29, 2018 at 4:12 PM, Miklos Szeredi wrote:
> On Tue, May 29, 2018 at 3:59 PM, Christoph Hellwig wrote:
>>> vfs: export vfs_dedupe_file_range_one() to modules
>>
>> Please use EXPORT_SYMBOL_GPL for all these crazy low-level exports.
I'd arg
On Tue, May 29, 2018 at 5:24 PM, Amir Goldstein wrote:
> On Tue, May 29, 2018 at 5:41 PM, Miklos Szeredi wrote:
>> From: Amir Goldstein
>>
>> Al Viro suggested to simplify callers of ovl_create_real() by
>> returning the created dentry (or ERR_PTR) from ovl_create
On Tue, May 29, 2018 at 5:24 PM, Amir Goldstein wrote:
> On Tue, May 29, 2018 at 5:41 PM, Miklos Szeredi wrote:
>> From: Amir Goldstein
>>
>> Al Viro suggested to simplify callers of ovl_create_real() by
>> returning the created dentry (or ERR_PTR) from ovl_create
On Tue, May 29, 2018 at 10:44 PM, Randy Dunlap wrote:
> On 05/29/2018 07:45 AM, Miklos Szeredi wrote:
>> + If this config option is enabled then overlay filesystems will
>> + copy up only metadata where appropriate and data copy up will
>> + happen w
On Tue, May 29, 2018 at 10:44 PM, Randy Dunlap wrote:
> On 05/29/2018 07:45 AM, Miklos Szeredi wrote:
>> + If this config option is enabled then overlay filesystems will
>> + copy up only metadata where appropriate and data copy up will
>> + happen w
On Tue, May 29, 2018 at 5:13 PM, Amir Goldstein wrote:
> On Tue, May 29, 2018 at 5:43 PM, Miklos Szeredi wrote:
>> + WARN(1, "overlayfs: \"check_copy_up\" module option is obsolete\n");
>
> I was under the impression that user controlled input should
On Tue, May 29, 2018 at 5:13 PM, Amir Goldstein wrote:
> On Tue, May 29, 2018 at 5:43 PM, Miklos Szeredi wrote:
>> + WARN(1, "overlayfs: \"check_copy_up\" module option is obsolete\n");
>
> I was under the impression that user controlled input should
On Tue, May 29, 2018 at 5:29 PM, Amir Goldstein wrote:
> On Tue, May 29, 2018 at 5:41 PM, Miklos Szeredi wrote:
>> From: Amir Goldstein
>>
>> vfs_mkdir() may succeed and leave the dentry passed to it unhashed and
>> negative. ovl_create_real() is the last caller br
On Tue, May 29, 2018 at 5:29 PM, Amir Goldstein wrote:
> On Tue, May 29, 2018 at 5:41 PM, Miklos Szeredi wrote:
>> From: Amir Goldstein
>>
>> vfs_mkdir() may succeed and leave the dentry passed to it unhashed and
>> negative. ovl_create_real() is the last caller br
From: Amir Goldstein
It did not prove to be useful.
Signed-off-by: Amir Goldstein
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/copy_up.c | 9 -
fs/overlayfs/dir.c | 20 ++--
fs/overlayfs/overlayfs.h | 42 ++
fs
-by: Miklos Szeredi
---
Documentation/filesystems/overlayfs.txt | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/filesystems/overlayfs.txt
b/Documentation/filesystems/overlayfs.txt
index 961b287ef323..72615a2c0752 100644
--- a/Documentation/filesystems/overlayfs.txt
, so now all callers of ovl_do_mkdir() are routed
through ovl_create_real(), which paves the way for Al's fix for non-hashed
result from vfs_mkdir().
Suggested-by: Al Viro
Signed-off-by: Amir Goldstein
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/copy_up.c | 15
fs/overlayfs
From: Amir Goldstein
* Rename to ovl_cattr
* Fold ovl_create_real() hardlink argument into struct ovl_cattr
* Create macro OVL_CATTR() to initialize struct ovl_cattr from mode
Signed-off-by: Amir Goldstein
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/copy_up.c | 5 ++---
fs/overlayfs
From: Amir Goldstein
It did not prove to be useful.
Signed-off-by: Amir Goldstein
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/copy_up.c | 9 -
fs/overlayfs/dir.c | 20 ++--
fs/overlayfs/overlayfs.h | 42 ++
fs
-by: Miklos Szeredi
---
Documentation/filesystems/overlayfs.txt | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/filesystems/overlayfs.txt
b/Documentation/filesystems/overlayfs.txt
index 961b287ef323..72615a2c0752 100644
--- a/Documentation/filesystems/overlayfs.txt
, so now all callers of ovl_do_mkdir() are routed
through ovl_create_real(), which paves the way for Al's fix for non-hashed
result from vfs_mkdir().
Suggested-by: Al Viro
Signed-off-by: Amir Goldstein
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/copy_up.c | 15
fs/overlayfs
From: Amir Goldstein
* Rename to ovl_cattr
* Fold ovl_create_real() hardlink argument into struct ovl_cattr
* Create macro OVL_CATTR() to initialize struct ovl_cattr from mode
Signed-off-by: Amir Goldstein
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/copy_up.c | 5 ++---
fs/overlayfs
From: Miklos Szeredi
Split out common helper for race free insertion of an already allocated
inode into the cache. Use this from iget5_locked() and
insert_inode_locked4(). Make iget5_locked() use new_inode()/iput() instead
of alloc_inode()/destroy_inode() directly.
Also export to modules
From: Miklos Szeredi
Split out common helper for race free insertion of an already allocated
inode into the cache. Use this from iget5_locked() and
insert_inode_locked4(). Make iget5_locked() use new_inode()/iput() instead
of alloc_inode()/destroy_inode() directly.
Also export to modules
Extract vfs_dedupe_file_range_one() helper to deal with a single dedup
request.
Signed-off-by: Miklos Szeredi
---
fs/read_write.c | 89 +++--
1 file changed, 49 insertions(+), 40 deletions(-)
diff --git a/fs/read_write.c b/fs/read_write.c
Clean up f_op->dedupe_file_range() interface.
1) Use loff_t for offsets and length instead of u64
2) Order the arguments the same way as {copy|clone}_file_range().
Signed-off-by: Miklos Szeredi
---
fs/btrfs/ctree.h | 5 +++--
fs/btrfs/ioctl.c | 5 +++--
fs/ocfs2/file.c| 6 +++---
inode to open is given as a separate argument.
This is in preparation for stacking I/O operations on overlay files.
Later, when implicit opening is removed, dentry_open() can be implemented
by just calling path_open().
Signed-off-by: Miklos Szeredi
---
fs/open.c | 31
Clean up f_op->dedupe_file_range() interface.
1) Use loff_t for offsets and length instead of u64
2) Order the arguments the same way as {copy|clone}_file_range().
Signed-off-by: Miklos Szeredi
---
fs/btrfs/ctree.h | 5 +++--
fs/btrfs/ioctl.c | 5 +++--
fs/ocfs2/file.c| 6 +++---
inode to open is given as a separate argument.
This is in preparation for stacking I/O operations on overlay files.
Later, when implicit opening is removed, dentry_open() can be implemented
by just calling path_open().
Signed-off-by: Miklos Szeredi
---
fs/open.c | 31
Extract vfs_dedupe_file_range_one() helper to deal with a single dedup
request.
Signed-off-by: Miklos Szeredi
---
fs/read_write.c | 89 +++--
1 file changed, 49 insertions(+), 40 deletions(-)
diff --git a/fs/read_write.c b/fs/read_write.c
tsuite, pjd-fstest).
Performance impact of stacking was found to be minimal. Memory use for
open overlay files increases by about 256bytes or 12%.
Git tree is here:
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-rorw
---
Miklos Szeredi (39):
vfs: dedpue: return
tsuite, pjd-fstest).
Performance impact of stacking was found to be minimal. Memory use for
open overlay files increases by about 256bytes or 12%.
Git tree is here:
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-rorw
---
Miklos Szeredi (39):
vfs: dedpue: return
the
count is not decremented.
Signed-off-by: Miklos Szeredi
---
fs/file_table.c| 13 +
fs/internal.h | 7 ++-
fs/open.c | 10 +-
include/linux/fs.h | 5 -
4 files changed, 24 insertions(+), 11 deletions(-)
diff --git a/fs/file_table.c b/fs/file_tab
the
count is not decremented.
Signed-off-by: Miklos Szeredi
---
fs/file_table.c| 13 +
fs/internal.h | 7 ++-
fs/open.c | 10 +-
include/linux/fs.h | 5 -
4 files changed, 24 insertions(+), 11 deletions(-)
diff --git a/fs/file_table.c b/fs/file_tab
ore taking mmap_sem.
Signed-off-by: Miklos Szeredi
---
Documentation/filesystems/Locking | 1 +
Documentation/filesystems/vfs.txt | 3 +++
include/linux/fs.h| 1 +
mm/util.c | 5 +
4 files changed, 10 insertions(+)
diff --git a/Documentation/filesyst
ore taking mmap_sem.
Signed-off-by: Miklos Szeredi
---
Documentation/filesystems/Locking | 1 +
Documentation/filesystems/vfs.txt | 3 +++
include/linux/fs.h| 1 +
mm/util.c | 5 +
4 files changed, 10 insertions(+)
diff --git a/Documentation/filesyst
This is needed by the stacked ioctl implementation in overlayfs.
Signed-off-by: Miklos Szeredi
---
fs/internal.h | 1 -
fs/ioctl.c | 1 +
include/linux/fs.h | 2 ++
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/fs/internal.h b/fs/internal.h
index b82725ba3054
This is needed by the stacked ioctl implementation in overlayfs.
Signed-off-by: Miklos Szeredi
---
fs/internal.h | 1 -
fs/ioctl.c | 1 +
include/linux/fs.h | 2 ++
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/fs/internal.h b/fs/internal.h
index b82725ba3054
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/super.c | 4
1 file changed, 4 insertions(+)
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 704b37311467..211975921a90 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -97,6 +97,10 @@ static struct dentry
Copy i_size of the underlying inode to the overlay inode in ovl_copyattr().
This is in preparation for stacking I/O operations on overlay files.
This patch shouldn't have any observable effect.
Remove stale comment from ovl_setattr() [spotted by Vivek Goyal].
Signed-off-by: Miklos Szeredi
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/super.c | 4
1 file changed, 4 insertions(+)
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 704b37311467..211975921a90 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -97,6 +97,10 @@ static struct dentry
Copy i_size of the underlying inode to the overlay inode in ovl_copyattr().
This is in preparation for stacking I/O operations on overlay files.
This patch shouldn't have any observable effect.
Remove stale comment from ovl_setattr() [spotted by Vivek Goyal].
Signed-off-by: Miklos Szeredi
Implement stacked writes.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index bbc40a14acf8..a7af56861aa5 100644
--- a/fs/overlayfs/file.c
+++ b/fs
Implement stacked writes.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index bbc40a14acf8..a7af56861aa5 100644
--- a/fs/overlayfs/file.c
+++ b/fs
Implement stacked reading.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 67 +
1 file changed, 67 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index db8778e7c37a..bbc40a14acf8 100644
--- a/fs/overlayfs/file.c
Implement stacked reading.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 67 +
1 file changed, 67 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index db8778e7c37a..bbc40a14acf8 100644
--- a/fs/overlayfs/file.c
tes for the struct file) since the real inode and dentry are
pinned by overlayfs anyway.
This patch doesn't have any effect, since the vfs will use d_real() to find
the real underlying file to open. The patch at the end of the series will
actually enable this functionality.
Signed-off-by: Miklos Szer
nce overlayfs has been doing most fine
without correctly handling this case at all), then we can deal with that by
updating the cached real file.
2) File's f_flags have changed since open: no need to reopen the cached
real file, we can just change the flags there as well.
Signed-off-by: Miklos Szer
tes for the struct file) since the real inode and dentry are
pinned by overlayfs anyway.
This patch doesn't have any effect, since the vfs will use d_real() to find
the real underlying file to open. The patch at the end of the series will
actually enable this functionality.
Signed-off-by: Miklos Szer
nce overlayfs has been doing most fine
without correctly handling this case at all), then we can deal with that by
updating the cached real file.
2) File's f_flags have changed since open: no need to reopen the cached
real file, we can just change the flags there as well.
Signed-off-by: Miklos Szer
Implement stacked fsync().
Don't sync if lower (noticed by Amir Goldstein).
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index a7af56861aa5..7b47dce4b072 100644
Implement stacked fsync().
Don't sync if lower (noticed by Amir Goldstein).
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index a7af56861aa5..7b47dce4b072 100644
overlay functionality out of the VFS.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/inode.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 24fc27683a57..0116ec12451d 100644
--- a/fs/overlayfs/inode.c
+++ b/fs
overlay functionality out of the VFS.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/inode.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 24fc27683a57..0116ec12451d 100644
--- a/fs/overlayfs/inode.c
+++ b/fs
Implement stacked mmap.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 28
1 file changed, 28 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index 7b47dce4b072..4057bbf2e141 100644
--- a/fs/overlayfs/file.c
+++ b/fs/overlayfs/file.c
Implement stacked mmap.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 28
1 file changed, 28 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index 7b47dce4b072..4057bbf2e141 100644
--- a/fs/overlayfs/file.c
+++ b/fs/overlayfs/file.c
Implement stacked fallocate.
Signed-off-by: Miklos Szeredi
---
fs/overlayfs/file.c | 24
1 file changed, 24 insertions(+)
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
index 4057bbf2e141..069599d53511 100644
--- a/fs/overlayfs/file.c
+++ b/fs/overlayfs/file.c
701 - 800 of 5429 matches
Mail list logo