bcachefs: Skip inode unpack/pack in bch2_extent_update()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 21 Oct 2022 17:42:38 +0000 (13:42 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:51 +0000 (17:09 -0400)
commit9bcbc0307d9cbaae5836a8051c91b468fe1571c9
tree08211c048d129b5cf1a59779c2691faee79fc9c3
parentb08b492ed3068b80122bb58476baeacad2d0fa4c
bcachefs: Skip inode unpack/pack in bch2_extent_update()

This takes advantage of the new inode type to skip the expensive
pack/unpack when inode updates are required in the extent update path.
Additionally, we now skip the inode update entirely when i_sectors and
i_size aren't changing.

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