bcachefs: Don't get journal reservation until after we know insert will succeed

Checking if we can do the insert after getting the journal reservation
means potentially wasting space in the journal, which will break the new
pre reservation mechanism

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2019-02-26 17:13:46 -05:00 • committed by Kent Overstreet
commit c8cc5b3e3f
2 changed files with 52 additions and 39 deletions