]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Don't use 'struct dentry' for internal lookups
authorTheodore Ts'o <tytso@mit.edu>
Mon, 22 Sep 2008 19:21:01 +0000 (15:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Sep 2008 19:21:01 +0000 (15:21 -0400)
commit0724fdd14e23f4904dfc323f820bca794b21828f
treebd31cefb5b88b882f4088007482266a3f5ad93ab
parent6ab3782c64664744ec79723fd09d7cd406b176ff
ext4: Don't use 'struct dentry' for internal lookups

This is a port of a patch from Linus which fixes a 200+ byte stack
usage problem in ext4_get_parent().

It's more efficient to pass down only the actual parts of the dentry
that matter: the parent inode and the name, instead of allocating a
struct dentry on the stack.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c