bcachefs: SECTOR_DIRTY_RESERVED
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 23 Nov 2021 22:05:56 +0000 (17:05 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:17 +0000 (17:09 -0400)
commitb44a66a64123efb3e6aebaa0cedec722ecbfbba4
tree0adb14327eeb3492f557a36a7c5ea5574a870ecc
parentb19d307dc11586df2e2b7430c0ccbfa439bf7a0b
bcachefs: SECTOR_DIRTY_RESERVED

This fixes another i_sectors accounting bug - we need to differentiate
between dirty writes that overwrite a reservation and dirty writes to
unallocated space - dirty writes to unallocated space increase
i_sectors, dirty writes over a reservation do not.

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