Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Btrfs: avoid deadlocks from GFP_KERNEL allocations during btrfs_real_…
…readdir Btrfs has an optimization where it will preallocate dentries during readdir to fill in enough information to open the inode without an extra lookup. But, we're calling d_alloc, which is doing GFP_KERNEL allocations, and that leads to deadlocks because our readdir code has tree locks held. For now, disable this optimization. We'll fix the gfp mask in the next merge window. Signed-off-by: Chris Mason <[email protected]>
- Loading branch information