public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs_bmapi_write retval fix v2
@ 2024-04-29  6:15 Christoph Hellwig
  2024-04-29  6:15 ` [PATCH 1/9] xfs: fix error returns from xfs_bmapi_write Christoph Hellwig
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Christoph Hellwig @ 2024-04-29  6:15 UTC (permalink / raw)
  To: Chandan Babu R, Darrick J. Wong; +Cc: Dave Chinner, linux-xfs


Hi all,

this series addresses our long standing issue with confusing return
values from xfs_bmapi_write.

The first patch is the actual return value fix for the fuzzer-reported
issue.

The second to last patch cleans up and fixes long-standing issues in
xfs_bmap_add_extent_delay_real in code paths that haven't been used much
or at all.

The last patch changes xfs_bmapi_write to not convert the entire
delalloc extent if it hits one.  This sounds simpler than it is, because
delalloc conversion has been designed to always convert the entire
extent since the initial delalloc commits.

While this has gotten a bit more testing by now, this will still stress
code never used.  I've also looked into the alternative of having all
callers handle short delalloc conversions, but it doesn't look appealing
at all.

Changes since v1:
 - rebased to the latest xfs-for-next tree with a minor conflict
 - spelling fixes

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

end of thread, other threads:[~2024-10-15 15:57 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-29  6:15 xfs_bmapi_write retval fix v2 Christoph Hellwig
2024-04-29  6:15 ` [PATCH 1/9] xfs: fix error returns from xfs_bmapi_write Christoph Hellwig
     [not found]   ` <CAEJPjCu5CWEMHHpLS2yB7tk9Hh52EsQ5npifKiw--U-50PLEng@mail.gmail.com>
2024-05-06 12:39     ` 刘通
2024-10-15 15:56       ` 刘通
2024-04-29  6:15 ` [PATCH 2/9] xfs: remove the unusued tmp_logflags variable in xfs_bmapi_allocate Christoph Hellwig
2024-04-29  6:15 ` [PATCH 3/9] xfs: lift a xfs_valid_startblock into xfs_bmapi_allocate Christoph Hellwig
2024-04-29  6:15 ` [PATCH 4/9] xfs: don't open code XFS_FILBLKS_MIN in xfs_bmapi_write Christoph Hellwig
2024-04-29  6:15 ` [PATCH 5/9] xfs: pass the actual offset and len to allocate to xfs_bmapi_allocate Christoph Hellwig
2024-04-29 15:48   ` Darrick J. Wong
2024-04-29 17:18     ` Christoph Hellwig
2024-04-29 17:20       ` Darrick J. Wong
2024-04-29  6:15 ` [PATCH 6/9] xfs: remove the xfs_iext_peek_prev_extent call in xfs_bmapi_allocate Christoph Hellwig
2024-04-29  6:15 ` [PATCH 7/9] xfs: fix xfs_bmap_add_extent_delay_real for partial conversions Christoph Hellwig
2024-04-29 15:48   ` Darrick J. Wong
2024-04-29  6:15 ` [PATCH 8/9] xfs: do not allocate the entire delalloc extent in xfs_bmapi_write Christoph Hellwig
2024-04-29  6:15 ` [PATCH 9/9] mm,page_owner: don't remove GFP flags in add_stack_record_to_list Christoph Hellwig
2024-04-29  6:17   ` Christoph Hellwig

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