bcachefs: Fix error path of bch2_link_trans()
authorYouling Tang <tangyouling@kylinos.cn>
Tue, 30 Apr 2024 03:28:39 +0000 (11:28 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:21 +0000 (17:29 -0400)
commit9862022d09f785088619fd3c14063592fddc2aa5
tree459e021685677b0cbc0aaf5c394e6f14b40f9b86
parent36aa49d33e8d59246bd338064d6a516f693954e5
bcachefs: Fix error path of bch2_link_trans()

In bch2_link_trans(), if bch2_inode_nlink_inc() fails, it needs to
call bch2_trans_iter_exit() in the error path.

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-common.c