|
|
Subscribe / Log in / New account

Intruduce stacking filesystem vfs helpers

From:  Amir Goldstein <amir73il-AT-gmail.com>
To:  Christian Brauner <brauner-AT-kernel.org>, Miklos Szeredi <miklos-AT-szeredi.hu>
Subject:  [RFC][PATCH 0/4] Intruduce stacking filesystem vfs helpers
Date:  Thu, 21 Dec 2023 11:54:06 +0200
Message-ID:  <20231221095410.801061-1-amir73il@gmail.com>
Cc:  linux-fsdevel-AT-vger.kernel.org, linux-unionfs-AT-vger.kernel.org
Archive-link:  Article

Christian,

These patches essentially just lift some overlayfs code to common
file fs/backing_file.c.

They are based on vfs.rw and overlayfs-next branches.

The motivation is (per Miklos' request) to reuse common stacking code
for the FUSE passthrough patches that I am shaping up for upstream.

I have been testing those patches with my fuse-backing-fd development
branch [1] for quite some time and I think both you and Miklos gave
a conceptual ACK to some version of this work, but the patches were
never publicly posted.

I am aiming the FUSE passthough work for the 6.9 dev cycle and I was
contemplating whether I should queue these up for 6.8 merge window to
give them time to mature before 6.9 merge window.

If I do that, would you preffer to take these patches via the vfs tree
or will you be ok with me including them in the overlayfs PR for 6.8?

Miklos,

Are you ok with including this in overlayfs PR for 6.8?

Thanks,
Amir.

[1] https://github.com/amir73il/linux/commits/fuse-backing-fd

Amir Goldstein (4):
  fs: prepare for stackable filesystems backing file helpers
  fs: factor out backing_file_{read,write}_iter() helpers
  fs: factor out backing_file_splice_{read,write}() helpers
  fs: factor out backing_file_mmap() helper

 MAINTAINERS                  |   9 +
 fs/Kconfig                   |   4 +
 fs/Makefile                  |   1 +
 fs/backing-file.c            | 324 +++++++++++++++++++++++++++++++++++
 fs/open.c                    |  38 ----
 fs/overlayfs/Kconfig         |   1 +
 fs/overlayfs/file.c          | 245 ++++----------------------
 fs/overlayfs/overlayfs.h     |   8 +-
 fs/overlayfs/super.c         |  11 +-
 include/linux/backing-file.h |  42 +++++
 include/linux/fs.h           |   3 -
 11 files changed, 423 insertions(+), 263 deletions(-)
 create mode 100644 fs/backing-file.c
 create mode 100644 include/linux/backing-file.h

-- 
2.34.1




Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds