mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
bcachefs: Fix an i_sectors accounting bug
We weren't checking for errors before calling i_sectors_acct() Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
7468c4effc
commit
8810386f6b
@ -2806,6 +2806,8 @@ static int __bchfs_fallocate(struct bch_inode_info *inode, int mode,
|
||||
&reservation.k_i,
|
||||
&disk_res, NULL,
|
||||
0, &i_sectors_delta, true);
|
||||
if (ret)
|
||||
goto bkey_err;
|
||||
i_sectors_acct(c, inode, "a_res, i_sectors_delta);
|
||||
bkey_err:
|
||||
bch2_quota_reservation_put(c, inode, "a_res);
|
||||
|
Loading…
Reference in New Issue
Block a user