All of lore.kernel.org
 help / color / mirror / Atom feed
* libfs.c:simple_lookup
@ 2007-02-19 20:09 Jan Engelhardt
  2007-02-19 21:35 ` libfs.c:simple_lookup Dave Kleikamp
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2007-02-19 20:09 UTC (permalink / raw)
  To: linux-fsdevel

Hello,


simple_lookup() in fs/libfs.c does some extra steps, namely

	dentry->d_op = &simple_dentry_operations;
	d_add(dentry, NULL);

as far as I understand, this creates a negative dentry which will be 
deleted sometime later again. Is not it easier to not create it at all 
(since it is not going to be existent anyway)?


Jan
-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-19 22:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-19 20:09 libfs.c:simple_lookup Jan Engelhardt
2007-02-19 21:35 ` libfs.c:simple_lookup Dave Kleikamp
2007-02-19 22:49   ` libfs.c:simple_lookup Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.