From: Nikita Danilov <Nikita@Namesys.COM>
To: Shaya Potter <spotter@cs.columbia.edu>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: file struct's dentry being null?
Date: Wed, 2 Jul 2003 19:58:12 +0400 [thread overview]
Message-ID: <16131.276.323954.605302@laputa.namesys.com> (raw)
In-Reply-To: <1057160991.7361.5.camel@zaphod>
Shaya Potter writes:
> I decided to do an experiment, in fput, I did a
>
> struct file * next;
> next = (struct file *) file->f_list.next;
->f_list.next points to the ->f_list member of next struct file rather
than to the struct file itself. This is how it works for all struct
list_head embedded into objects.
> if ( !next->dentry )
> printk("file struct: next's dentry is null, %d\n", next);
>
> and I get a bunch of kernel output along these lines, with 5 different
> next memory locations. I only have 3 mount points, so it doesn't seem
> to be related to that (though I would have thought it might have been
> the list_head on the superblock). anyways, just trying to figure out
> what it's pointing to?
>
> thanks,
>
> shaya
>
Nikita.
>
next prev parent reply other threads:[~2003-07-02 15:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-02 15:49 file struct's dentry being null? Shaya Potter
2003-07-02 15:58 ` Nikita Danilov [this message]
2003-07-02 16:00 ` Shaya Potter
2003-07-02 16:18 ` Eli Carter
2003-07-02 16:26 ` Shaya Potter
2003-07-02 16:32 ` Shaya Potter
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=16131.276.323954.605302@laputa.namesys.com \
--to=nikita@namesys.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=spotter@cs.columbia.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox