linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sort out the fallocate mode mess
@ 2024-08-21  6:30 Christoph Hellwig
  2024-08-21  6:30 ` [PATCH 1/6] block: remove checks for FALLOC_FL_NO_HIDE_STALE Christoph Hellwig
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Christoph Hellwig @ 2024-08-21  6:30 UTC (permalink / raw)
  To: Christian Brauner, Alexander Viro, Chandan Babu R
  Cc: Jens Axboe, Jan Kara, Darrick J. Wong, Theodore Ts'o,
	linux-block, linux-fsdevel, linux-xfs, linux-ext4

Hi all,

I've recently been looking at the XFS fallocate implementation and got
upset about the messing parsing of the mode argument, which mixes modes
and an optional flag in a really confusing way.

This series tries to clean this up by better defining what is the
operation mode and what is an optional flag, so that both the core
code and file systems can use switch statements to switch on the mode.

^ permalink raw reply	[flat|nested] 17+ messages in thread
* sort out the fallocate mode mess v2
@ 2024-08-27  6:50 Christoph Hellwig
  2024-08-27  6:50 ` [PATCH 3/6] fs: sort out the fallocate mode vs flag mess Christoph Hellwig
  0 siblings, 1 reply; 17+ messages in thread
From: Christoph Hellwig @ 2024-08-27  6:50 UTC (permalink / raw)
  To: Christian Brauner, Alexander Viro, Chandan Babu R
  Cc: Brian Foster, Jens Axboe, Jan Kara, Darrick J. Wong,
	Theodore Ts'o, linux-block, linux-fsdevel, linux-xfs,
	linux-ext4

Hi all,

I've recently been looking at the XFS fallocate implementation and got
upset about the messing parsing of the mode argument, which mixes modes
and an optional flag in a really confusing way.

This series tries to clean this up by better defining what is the
operation mode and what is an optional flag, so that both the core
code and file systems can use switch statements to switch on the mode.

Changes since v1:
 - fix the IS_APPEND check
 - ensure space is allocated after unshare

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

end of thread, other threads:[~2024-08-28 15:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21  6:30 sort out the fallocate mode mess Christoph Hellwig
2024-08-21  6:30 ` [PATCH 1/6] block: remove checks for FALLOC_FL_NO_HIDE_STALE Christoph Hellwig
2024-08-21  6:30 ` [PATCH 2/6] ext4: remove tracing " Christoph Hellwig
2024-08-21  6:30 ` [PATCH 3/6] fs: sort out the fallocate mode vs flag mess Christoph Hellwig
2024-08-21 12:43   ` Brian Foster
2024-08-21 13:14     ` Christoph Hellwig
2024-08-21  6:30 ` [PATCH 4/6] xfs: call xfs_flush_unmap_range from xfs_free_file_space Christoph Hellwig
2024-08-21  6:30 ` [PATCH 5/6] xfs: move the xfs_is_always_cow_inode check into xfs_alloc_file_space Christoph Hellwig
2024-08-21  6:30 ` [PATCH 6/6] xfs: refactor xfs_file_fallocate Christoph Hellwig
2024-08-21 12:44   ` Brian Foster
2024-08-21 12:57     ` Christoph Hellwig
2024-08-21 13:09       ` Brian Foster
2024-08-21 16:11 ` sort out the fallocate mode mess Darrick J. Wong
  -- strict thread matches above, loose matches on Subject: below --
2024-08-27  6:50 sort out the fallocate mode mess v2 Christoph Hellwig
2024-08-27  6:50 ` [PATCH 3/6] fs: sort out the fallocate mode vs flag mess Christoph Hellwig
2024-08-27 14:55   ` Darrick J. Wong
2024-08-28  4:05     ` Christoph Hellwig
2024-08-28 15:34   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).