From: Dave Hansen <haveblue@us.ibm.com>
To: Mark Fasheh <mark.fasheh@oracle.com>
Cc: linux-kernel@vger.kernel.org, hch@lst.de,
viro@zeniv.linux.org.uk, mm-commits@vger.kernel.org,
akpm@osdl.org
Subject: Re: - r-o-bind-mount-clean-up-ocfs2-nlink-handling.patch removed from -mm tree
Date: Wed, 13 Sep 2006 11:36:36 -0700 [thread overview]
Message-ID: <1158172596.9141.91.camel@localhost.localdomain> (raw)
In-Reply-To: <20060913182716.GI8792@ca-server1.us.oracle.com>
On Wed, 2006-09-13 at 11:27 -0700, Mark Fasheh wrote:
> On Tue, Sep 12, 2006 at 10:06:30PM -0700, akpm@osdl.org wrote:
> > The patch titled
> >
> > r/o bind mounts: clean up OCFS2 nlink handling
> >
> > has been removed from the -mm tree. Its filename is
> >
> > r-o-bind-mount-clean-up-ocfs2-nlink-handling.patch
> >
> > This patch was dropped because git-ocfs2 changes broke it. New patch, please.
> Yep, that was very likely due to my dentry vote removal changes.
>
> Dave, how's this one look? I guess I'll leave the same description message
> below...
I was _just_ fighting with your git tree to see what was conflicting!
You have impeccable timing.
> static int ocfs2_unlink(struct inode *dir,
> struct dentry *dentry)
> {
> int status;
> - unsigned int saved_nlink = 0;
> struct inode *inode = dentry->d_inode;
> struct ocfs2_super *osb = OCFS2_SB(dir->i_sb);
> u64 blkno;
> @@ -813,6 +825,7 @@ static int ocfs2_unlink(struct inode *di
> struct buffer_head *dirent_bh = NULL;
> char orphan_name[OCFS2_ORPHAN_NAMELEN + 1];
> struct buffer_head *orphan_entry_bh = NULL;
> + unsigned int future_nlink;
>
> mlog_entry("(0x%p, 0x%p, '%.*s')\n", dir, dentry,
> dentry->d_name.len, dentry->d_name.name);
> @@ -876,15 +889,10 @@ static int ocfs2_unlink(struct inode *di
> }
> }
>
> - /* There are still a few steps left until we can consider the
> - * unlink to have succeeded. Save off nlink here before
> - * modification so we can set it back in case we hit an issue
> - * before commit. */
> - saved_nlink = inode->i_nlink;
> - if (S_ISDIR(inode->i_mode))
> - inode->i_nlink = 0;
> + if (S_ISDIR(inode->i_mode) && (inode->i_nlink == 2))
> + future_nlink = 0;
> else
> - inode->i_nlink--;
> + future_nlink = inode->i_nlink - 1;
Now that the vote call is gone, I don't think we even use future_nlink.
Can we just kill this entire section?
-- Dave
next prev parent reply other threads:[~2006-09-13 18:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200609130506.k8D56U3m018878@shell0.pdx.osdl.net>
2006-09-13 18:27 ` - r-o-bind-mount-clean-up-ocfs2-nlink-handling.patch removed from -mm tree Mark Fasheh
2006-09-13 18:36 ` Dave Hansen [this message]
2006-09-13 19:12 ` Mark Fasheh
2006-09-13 19:18 ` Dave Hansen
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=1158172596.9141.91.camel@localhost.localdomain \
--to=haveblue@us.ibm.com \
--cc=akpm@osdl.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.fasheh@oracle.com \
--cc=mm-commits@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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.