Re: [PATCH v2.1 2/3] btrfs-progs: dir-item: Don't do extra filetype validaction check for btrfs_match_dir_item_name

2018-01-22 Thread Nikolay Borisov
On 22.01.2018 07:45, Qu Wenruo wrote: > verify_dir_item() is called in btrfs_match_dir_item_name() to ensure we > won't search beyond item boundary and does extra filetype check. > > However in the follow call chain, such extra filetype check can cause > problems: > > 1) btrfs_add_link() >

[PATCH v2.1 2/3] btrfs-progs: dir-item: Don't do extra filetype validaction check for btrfs_match_dir_item_name

2018-01-21 Thread Qu Wenruo
verify_dir_item() is called in btrfs_match_dir_item_name() to ensure we won't search beyond item boundary and does extra filetype check. However in the follow call chain, such extra filetype check can cause problems: 1) btrfs_add_link() |- check_dir_conflict() |-