Josef Bacik <jo...@redhat.com> writes:
> +
> +                             newkey = kzalloc(sizeof(struct btrfs_key),
> +                                              GFP_NOFS);
> +                             if (!newkey)
> +                                     goto no_dentry;
> +                             tmp = d_alloc(filp->f_dentry, &q);

This doesn't seem to address the "find / fills all memory with dentries"
concerns brought up earlier at all.

d_alloc uses a normal GFP_KERNEL, which is quite in appropiate for this.

It should at least reclaim and probably more, but even then it's
risky.

-Andi

-- 
a...@linux.intel.com -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to