diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-25 12:35:06 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-10 15:34:08 -0400 |
commit | 5b6271b5091263bb705f9634917b41ce980d2ba7 (patch) | |
tree | ff436f623abc09b63a088ec771f066811f0e5fa9 /fs/bcachefs/fs-common.c | |
parent | 23f25223157c60b00f86d74d141772c5c1996ae4 (diff) | |
download | linux-stable-5b6271b5091263bb705f9634917b41ce980d2ba7.tar.gz linux-stable-5b6271b5091263bb705f9634917b41ce980d2ba7.tar.bz2 linux-stable-5b6271b5091263bb705f9634917b41ce980d2ba7.zip |
bcachefs: Cleanup bch2_dirent_lookup_trans()
Drop an unnecessary bch2_subvolume_get_snapshot() call, and drop the __
from the name - this is a normal interface.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fs-common.c')
-rw-r--r-- | fs/bcachefs/fs-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/fs-common.c b/fs/bcachefs/fs-common.c index 1c1ea0f0c692..8ee716e4c2e7 100644 --- a/fs/bcachefs/fs-common.c +++ b/fs/bcachefs/fs-common.c @@ -260,8 +260,8 @@ int bch2_unlink_trans(struct btree_trans *trans, dir_hash = bch2_hash_info_init(c, dir_u); - ret = __bch2_dirent_lookup_trans(trans, &dirent_iter, dir, &dir_hash, - name, &inum, BTREE_ITER_INTENT); + ret = bch2_dirent_lookup_trans(trans, &dirent_iter, dir, &dir_hash, + name, &inum, BTREE_ITER_INTENT); if (ret) goto err; |