Linux filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] minix: modernize function declarations and eliminating some magic numbers
@ 2026-07-06 18:22 Jeremy Bingham
  2026-07-06 18:22 ` [PATCH 1/2] minix: define constants for dirsize and namelen Jeremy Bingham
  2026-07-06 18:22 ` [PATCH 2/2] minix: modernize function declarations in minix.h Jeremy Bingham
  0 siblings, 2 replies; 4+ messages in thread
From: Jeremy Bingham @ 2026-07-06 18:22 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux-kernel, brauner, jkoolstra, jack, Jeremy Bingham

Another set of minix patches fixing issues that I noticed while working
on other things. The various dirsize and namelen values being set in
minix_fill_super() in inode.c, which vary depending on the versions of
the minix filesystem and how it was created, were being set as magic
numbers. The function declarations in minix.h were also a mix of current
and historic kernel coding standards, where some function declarations
had arguments with types and names while others had only types. This
became an annoyance when updating minix.h because checkpatch.pl would
gripe about improper function declarations.

Create and use #defines for the various dirsize and namelen values in
minix_fill_super, and modernize the function declarations in minix.h.

Both patches have been tested by mounting and performing file operations
against v1, v2, and v3 minix filesystem volumes. Neither of them have
any functional changes.

Jeremy Bingham (2):
  minix: define constants for dirsize and namelen
  minix: modernize function declarations in minix.h

 fs/minix/inode.c    | 20 ++++++------
 fs/minix/itree_v1.c |  2 +-
 fs/minix/itree_v2.c |  2 +-
 fs/minix/minix.h    | 78 ++++++++++++++++++++++++++++++---------------
 4 files changed, 65 insertions(+), 37 deletions(-)

-- 
2.47.3


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

end of thread, other threads:[~2026-07-06 20:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06 18:22 [PATCH 0/2] minix: modernize function declarations and eliminating some magic numbers Jeremy Bingham
2026-07-06 18:22 ` [PATCH 1/2] minix: define constants for dirsize and namelen Jeremy Bingham
2026-07-06 20:47   ` Jori Koolstra
2026-07-06 18:22 ` [PATCH 2/2] minix: modernize function declarations in minix.h Jeremy Bingham

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