]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Rework fiemap transaction restart handling
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 22 Apr 2025 15:52:45 +0000 (11:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 24 Apr 2025 23:10:29 +0000 (19:10 -0400)
commitd1b0f9aa73fe50ee5276708e33d77c4e7054e555
tree57fb39f285c16f21c93c06b4479f41c218122315
parentb9b0494017b5f6d0664ecbcd2d8870800f045581
bcachefs: Rework fiemap transaction restart handling

Restart handling in the previous patch was incorrect, so: move btree
operations into a separate helper, and run it with a lockrestart_do().

Additionally, clarify whether pagecache or the btree takes precedence.

Right now, the btree takes precedence: this is incorrect, but it's
needed to pass fstests. Add a giant comment explaining why.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c