From: Anand Avati <avati@redhat.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-fsdevel@vger.kernel.org, fuse-devel@lists.sourceforge.net,
josef@redhat.com, chenk@redhat.com,
Boris Protopopov <bprotopopov@hotmail.com>
Subject: Re: [PATCH] fuse: mark all aliases of an inode stale in unlink
Date: Fri, 20 Jan 2012 20:54:08 +0530 [thread overview]
Message-ID: <4F198718.8050902@redhat.com> (raw)
In-Reply-To: <87vco6saic.fsf@tucsk.pomaz.szeredi.hu>
On 01/20/2012 08:10 PM, Miklos Szeredi wrote:
> Untested patch below. Does that work for you?
>
> Thanks,
> Miklos
>
>
> diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
> index 2066328..517a7f5 100644
> --- a/fs/fuse/dir.c
> +++ b/fs/fuse/dir.c
> @@ -645,12 +645,7 @@ static int fuse_unlink(struct inode *dir, struct dentry *entry)
> if (!err) {
> struct inode *inode = entry->d_inode;
>
> - /*
> - * Set nlink to zero so the inode can be cleared, if the inode
> - * does have more links this will be discovered at the next
> - * lookup/getattr.
> - */
> - clear_nlink(inode);
> + drop_nlink(inode);
> fuse_invalidate_attr(inode);
> fuse_invalidate_attr(dir);
> fuse_invalidate_entry_cache(entry);
That will work for me!
Thanks,
Avati
next prev parent reply other threads:[~2012-01-20 15:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 21:56 [PATCH] fuse: mark all aliases of an inode stale in unlink Anand Avati
2012-01-20 14:40 ` Miklos Szeredi
2012-01-20 15:24 ` Anand Avati [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-19 21:46 Anand Avati
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=4F198718.8050902@redhat.com \
--to=avati@redhat.com \
--cc=bprotopopov@hotmail.com \
--cc=chenk@redhat.com \
--cc=fuse-devel@lists.sourceforge.net \
--cc=josef@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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.