diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-15 19:04:05 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:57 -0400 |
commit | 711bf946d55d28336dcc4f87209c8b74e6279481 (patch) | |
tree | 841b2914e9e2cf510faa35cb2bb29ade3b5c0ee4 /fs/bcachefs/fs.c | |
parent | 9edbcc72f6987bbb58f113d04e7704b7a84106a6 (diff) | |
download | linux-711bf946d55d28336dcc4f87209c8b74e6279481.tar.gz linux-711bf946d55d28336dcc4f87209c8b74e6279481.tar.bz2 linux-711bf946d55d28336dcc4f87209c8b74e6279481.zip |
bcachefs: Add an assert in inode_write for -ENOENT
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fs.c')
-rw-r--r-- | fs/bcachefs/fs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 129924dfaf69..a57ab773dd27 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -105,6 +105,11 @@ retry: if (bch2_err_matches(ret, BCH_ERR_transaction_restart)) goto retry; + bch2_fs_fatal_err_on(ret == -ENOENT, c, + "inode %u:%llu not found when updating", + inode_inum(inode).subvol, + inode_inum(inode).inum); + bch2_trans_exit(&trans); return ret < 0 ? ret : 0; } |