mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/8] fs: merge struct filep (FILE) and struct file
Date: Tue,  7 Jan 2025 08:59:31 +0100	[thread overview]
Message-ID: <20250107075939.2841119-1-a.fatoum@pengutronix.de> (raw)

Since dcache support was added, we had two structs representing files:
struct file and type struct filep FILE. The former was used only for
listing files in ->iterate and the latter everywhere else for
representing an open file (descriptor).

This series aligns the members of both struct sufficiently and then
merges them to simplify porting kernel code.

Ahmad Fatoum (8):
  fs: derive file descriptor number by pointer arithmetic
  fs: drop ifdefs in linux/fs.h
  fs: retire FILE.in_use member
  fs: align FILE struct member names with upstream struct file
  fs: fat: rename f_size to f_len
  fs: replace FILE.size by f_inode.i_size
  fs: merge struct file and struct filep
  fs: retire FILE typdef

 fs/bpkfs.c             |  18 ++---
 fs/cramfs/cramfs.c     |   4 +-
 fs/devfs.c             |  56 ++++++-------
 fs/efi.c               |  28 +++----
 fs/efivarfs.c          |  34 ++++----
 fs/ext4/ext_barebox.c  |   4 +-
 fs/fat/fat-pbl.c       |   2 +-
 fs/fat/fat.c           |  30 +++----
 fs/fat/ff.h            |   2 +-
 fs/fs.c                | 178 ++++++++++++++++++++---------------------
 fs/jffs2/fs.c          |  18 ++---
 fs/nfs.c               |  23 +++---
 fs/omap4_usbbootfs.c   |  22 ++---
 fs/pstore/fs.c         |  16 ++--
 fs/ramfs.c             |  16 ++--
 fs/ratpfs.c            |  36 ++++-----
 fs/smhfs.c             |  28 +++----
 fs/squashfs/squashfs.c |  15 ++--
 fs/tftp.c              |  26 +++---
 fs/ubifs/ubifs.c       |  17 ++--
 fs/ubootvarfs.c        |  10 +--
 fs/uimagefs.c          |  20 ++---
 include/driver.h       |   6 +-
 include/fs.h           |  42 +++-------
 include/linux/fs.h     |  25 ++----
 25 files changed, 318 insertions(+), 358 deletions(-)

-- 
2.39.5




             reply	other threads:[~2025-01-07  8:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-07  7:59 Ahmad Fatoum [this message]
2025-01-07  7:59 ` [PATCH 1/8] fs: derive file descriptor number by pointer arithmetic Ahmad Fatoum
2025-01-07  7:59 ` [PATCH 2/8] fs: drop ifdefs in linux/fs.h Ahmad Fatoum
2025-01-07  7:59 ` [PATCH 3/8] fs: retire FILE.in_use member Ahmad Fatoum
2025-01-07  7:59 ` [PATCH 4/8] fs: align FILE struct member names with upstream struct file Ahmad Fatoum
2025-01-07  7:59 ` [PATCH 5/8] fs: fat: rename f_size to f_len Ahmad Fatoum
2025-01-07  7:59 ` [PATCH 6/8] fs: replace FILE.size by f_inode.i_size Ahmad Fatoum
2025-01-07  7:59 ` [PATCH 7/8] fs: merge struct file and struct filep Ahmad Fatoum
2025-01-07  7:59 ` [PATCH 8/8] fs: retire FILE typdef Ahmad Fatoum
2025-01-08 14:02 ` [PATCH 0/8] fs: merge struct filep (FILE) and struct file Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250107075939.2841119-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox