On 17.12.20 г. 7:55 ч., Nikolay Borisov wrote: > > > On 17.12.20 г. 6:57 ч., Qu Wenruo wrote: >> In btrfs_invalidatepage() we re-declare @tree variable as >> btrfs_ordered_inode_tree. >> >> Remove such variable shadowing which can be very confusing. > > You can't do that, because lock_extent_bits expects extent_io_tree ! > Ok, nvm, you just factored the var at the beginning of the functions. OTOH since the ordered tree is used just for lock/unlock why not do spin_(un)lock(&inode->ordered_tree->lock);
- [PATCH 0/4] btrfs: inode: btrfs_invalidatepage() related r... Qu Wenruo
- [PATCH 2/4] btrfs: inode: remove variable shadowing i... Qu Wenruo
- Re: [PATCH 2/4] btrfs: inode: remove variable sha... Su Yue
- Re: [PATCH 2/4] btrfs: inode: remove variable sha... Nikolay Borisov
- Re: [PATCH 2/4] btrfs: inode: remove variable... Nikolay Borisov
- Re: [PATCH 2/4] btrfs: inode: remove vari... Qu Wenruo
- Re: [PATCH 2/4] btrfs: inode: remove... David Sterba
- [PATCH RFC 4/4] btrfs: inode: make btrfs_invalidatepa... Qu Wenruo
- [PATCH 3/4] btrfs: inode: move the timing of TestClea... Qu Wenruo
- [PATCH 1/4] btrfs: inode: use min() to replace open-c... Qu Wenruo
