commit | b086e251ace1cd42d32351becb6623877150687b | [log] [tgz] |
---|---|---|
author | Qu Wenruo <wqu@suse.com> | Wed Jun 24 18:03:04 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Sep 07 20:57:27 2020 -0400 |
tree | ca98adde9d3387f846c75c3b7ac43ad813bb70bc | |
parent | 49fe0f0858da1b732573b3776bbd6e644ee1ced9 [diff] |
fs: btrfs: inode: Allow next_length() to return value > BTRFS_NAME_LEN All existing next_length() caller handles return value > BTRFS_NAME_LEN, so there is no need to do BTRFS_NAME_LEN check in next_length(). But still, we want to exit early if we're beyond BTRFS_NAME_LEN, so this patch makes next_length() exit as soon as we're beyond BTRFS_NAME_LEN. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>