summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-03-21 14:14:00 +0300
committerDavid Sterba <dsterba@suse.com>2023-04-17 19:01:20 +0300
commitb7b1167c36350904899594ddb235f64d59625195 (patch)
treea960df8bece858fb989f4f303b7fb7755d1edf61 /include/linux/timerqueue.h
parentf8f210dc84709804c9f952297f2bfafa6ea6b4bd (diff)
downloadlinux-b7b1167c36350904899594ddb235f64d59625195.tar.xz
btrfs: simplify exit paths of btrfs_evict_inode()
Instead of using two labels at btrfs_evict_inode() for exiting depending on whether we need to delete the inode items and orphan or some error happened, we can use a single exit label if we initialize the block reserve to NULL, since btrfs_free_block_rsv() ignores a NULL block reserve pointer. So just do that. It will also make an upcoming change simpler by avoiding one extra error label. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions