]> git.baikalelectronics.ru Git - uboot.git/commit
fs: btrfs: inode: Allow next_length() to return value > BTRFS_NAME_LEN
authorQu Wenruo <wqu@suse.com>
Wed, 24 Jun 2020 16:03:04 +0000 (18:03 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Sep 2020 00:57:27 +0000 (20:57 -0400)
commit3c822c13b55e39268081d7d76e5cb20b57917c01
treeca98adde9d3387f846c75c3b7ac43ad813bb70bc
parentad9057bea7762f9812f0cf7c96a79af61c5a47e7
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>
fs/btrfs/inode.c