linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Anton Altaparmakov <aia21@cam.ac.uk>
Cc: ntfs-dev <linux-ntfs-dev@lists.sourceforge.net>,
	linux-fsdevel@vger.kernel.org
Subject: Re: fishy ->put_inode usage in ntfs
Date: Thu, 10 Feb 2005 11:47:19 +0100	[thread overview]
Message-ID: <20050210104719.GA2771@lst.de> (raw)
In-Reply-To: <1097760404.21275.52.camel@imp.csi.cam.ac.uk>

On Thu, Oct 14, 2004 at 02:26:45PM +0100, Anton Altaparmakov wrote:
> > I don't like filesystem doings things like this in ->put_inode at all,
> > and indeed the plan is to get rid of ->put_inode completely.  Why do
> > you need to hold an additional reference anyway?  What's so special
> > about the relation of these two inodes?
> 
> The bmp_ino is a virtual inode.  It doesn't exist on disk as an inode. 
> It is an NTFS attribute of the base inode.  It cannot exist without the
> base inode there.  You could neither read from nor write to this inode
> without its base inode being there and you couldn't even clear_inode()
> this inode without the base inode being there.  The reference is
> essential I am afraid.
> 
> If ->put_inode is removed then I will have to switch to using
> ntfs_attr_iget() each time or I will have to attach the inode in some
> other much hackier way that doesn't use the i_count and uses my ntfs
> private counter instead.

Coming back to this issue.  Why do you need to refcount bmp_ino at all?
Can someone ever grab a reference separate from it's master inode?


  reply	other threads:[~2005-02-10 10:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14 11:26 fishy ->put_inode usage in ntfs Christoph Hellwig
2004-10-14 12:39 ` Anton Altaparmakov
2004-10-14 12:44   ` Matthew Wilcox
2004-10-14 13:27     ` Anton Altaparmakov
2004-10-14 14:59     ` Anton Altaparmakov
2004-10-14 12:59   ` Christoph Hellwig
2004-10-14 13:26     ` Anton Altaparmakov
2005-02-10 10:47       ` Christoph Hellwig [this message]
2005-02-10 14:40         ` Anton Altaparmakov
2005-02-10 14:42           ` Christoph Hellwig
2005-02-10 14:48             ` Anton Altaparmakov
2005-02-10 14:50               ` Anton Altaparmakov
2005-02-10 14:51                 ` Christoph Hellwig
2005-02-10 14:50               ` Christoph Hellwig
2005-02-10 14:59                 ` Anton Altaparmakov
2005-02-13 16:35                   ` Christoph Hellwig
2005-02-14 20:44                     ` Anton Altaparmakov
2005-03-01 23:17                       ` David Woodhouse
2005-03-02  8:43                         ` Anton Altaparmakov
2005-03-02  8:53                           ` David Woodhouse

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=20050210104719.GA2771@lst.de \
    --to=hch@lst.de \
    --cc=aia21@cam.ac.uk \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-ntfs-dev@lists.sourceforge.net \
    /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;
as well as URLs for NNTP newsgroup(s).