Linux filesystem development
 help / color / mirror / Atom feed
From: Shaya Potter <spotter@cs.columbia.edu>
To: Nikita Danilov <Nikita@Namesys.COM>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: file struct's dentry being null?
Date: 02 Jul 2003 12:00:17 -0400	[thread overview]
Message-ID: <1057161617.7361.10.camel@zaphod> (raw)
In-Reply-To: <16131.276.323954.605302@laputa.namesys.com>

On Wed, 2003-07-02 at 11:58, Nikita Danilov wrote:
> 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.

yes, I understand that, the idea being that it's the first entry in the
struct that you want to link list, so can get the next struct by just
dereferencing the list_head (as &list_head == &struct)

I was just cheating, but that explains my point, I could see it being
null if I hit the real list_head (i.e. on the superblock), but I am
getting 5 distinct "hits", with only 3 mount points, so trying to figure
out why.

the issue I'm trying to figure out is (posted once b4) that I am getting
corrupt entries off of ext3's file list in it's superblock, so that when
fs_may_remount_ro() is called, it oops with a null pointer exception. 


  reply	other threads:[~2003-07-02 15:49 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
2003-07-02 16:00   ` Shaya Potter [this message]
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=1057161617.7361.10.camel@zaphod \
    --to=spotter@cs.columbia.edu \
    --cc=Nikita@Namesys.COM \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox