mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] fs: remove dev argument from file operations
@ 2025-10-01  8:06 Sascha Hauer
  2025-10-01  8:06 ` [PATCH 1/2] fs: remove redundant dev argument from fs_driver operations Sascha Hauer
  2025-10-01  8:06 ` [PATCH 2/2] fs: move fs_driver operations to struct file_operations Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2025-10-01  8:06 UTC (permalink / raw)
  To: BAREBOX

All fs_driver operations like read, write and ioctl take a struct device *
argument which is mostly unused by the filesystem driver and for the few
cases where it was used the device can be retrieved from the file argument.

This series removes the dev argument and moves the the fs_driver
operation over to filesystem_operations.

This is done in preparation to support device special files later and
consequently retire devfs as a filesystem.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (2):
      fs: remove redundant dev argument from fs_driver operations
      fs: move fs_driver operations to struct file_operations

 fs/9p/v9fs.h           |  8 +++-----
 fs/9p/v9fs_vfs.h       |  2 +-
 fs/9p/vfs_addr.c       |  6 ++----
 fs/9p/vfs_dir.c        |  2 +-
 fs/9p/vfs_file.c       |  6 ++++++
 fs/9p/vfs_inode_dotl.c |  9 +--------
 fs/bpkfs.c             |  8 ++++----
 fs/cramfs/cramfs.c     |  9 +++++++--
 fs/devfs.c             | 42 +++++++++++++++++++---------------------
 fs/efi.c               |  9 ++++-----
 fs/efivarfs.c          |  8 +++-----
 fs/ext4/ext_barebox.c  |  8 ++++++--
 fs/fat/fat.c           | 19 ++++++++----------
 fs/fs.c                | 48 +++++++++++++++++++++++-----------------------
 fs/jffs2/fs.c          | 15 +++++++--------
 fs/legacy.c            | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 fs/nfs.c               | 17 ++++++++---------
 fs/omap4_usbbootfs.c   |  3 +--
 fs/pstore/fs.c         |  8 ++++----
 fs/qemu_fw_cfg.c       | 27 +++++++++++++-------------
 fs/ramfs.c             | 20 ++++++++++---------
 fs/ratpfs.c            | 15 ++++++---------
 fs/smhfs.c             | 18 +++++++----------
 fs/squashfs/squashfs.c | 15 +++++++--------
 fs/tftp.c              | 19 +++++++++---------
 fs/ubifs/super.c       |  1 +
 fs/ubifs/ubifs.c       |  3 +--
 fs/ubifs/ubifs.h       |  1 +
 fs/uimagefs.c          | 15 +++++++--------
 include/fs.h           | 24 +++++------------------
 include/linux/fs.h     | 20 +++++++++++++++----
 31 files changed, 246 insertions(+), 211 deletions(-)
---
base-commit: 92d503132efc60305fb94d87e54a1214e1781dae
change-id: 20251001-fs-remove-dev-argument-38d1c2104871

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-01  8:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-01  8:06 [PATCH 0/2] fs: remove dev argument from file operations Sascha Hauer
2025-10-01  8:06 ` [PATCH 1/2] fs: remove redundant dev argument from fs_driver operations Sascha Hauer
2025-10-01  8:06 ` [PATCH 2/2] fs: move fs_driver operations to struct file_operations Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox