All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@linux01.gwdg.de>
To: linux-fsdevel@vger.kernel.org
Subject: libfs.c:simple_lookup
Date: Mon, 19 Feb 2007 21:09:03 +0100 (MET)	[thread overview]
Message-ID: <Pine.LNX.4.61.0702192104190.17828@yvahk01.tjqt.qr> (raw)

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
-- 

             reply	other threads:[~2007-02-19 20:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-19 20:09 Jan Engelhardt [this message]
2007-02-19 21:35 ` libfs.c:simple_lookup Dave Kleikamp
2007-02-19 22:49   ` libfs.c:simple_lookup Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.61.0702192104190.17828@yvahk01.tjqt.qr \
    --to=jengelh@linux01.gwdg.de \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.