diff options
| author | NeilBrown <neil@brown.name> | 2025-11-13 11:18:26 +1100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-14 13:15:56 +0100 |
| commit | 3661a7887462b2352ef5199a04e79c3d3c11fff3 (patch) | |
| tree | 4fb6e686617ff63a91f01021bc330ab30a0e9b10 /fs/xfs/xfs_exchrange.h | |
| parent | 4037d966f034ba5da2872c413b2ec17eca867e68 (diff) | |
VFS: tidy up do_unlinkat()
The simplification of locking in the previous patch opens up some room
for tidying up do_unlinkat()
- change all "exit" labels to describe what will happen at the label.
- always goto an exit label on an error - unwrap the "if (!IS_ERR())" branch.
- Move the "slashes" handing inline, but mark it as unlikely()
- simplify use of the "inode" variable - we no longer need to test for NULL.
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20251113002050.676694-4-neilb@ownmail.net
Tested-by: syzbot@syzkaller.appspotmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_exchrange.h')
0 files changed, 0 insertions, 0 deletions