All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <jlbec@evilplan.org>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH V3] ocfs2: xattr: fix inlined xattr reflink
Date: Tue, 2 Jul 2013 14:21:03 -0700	[thread overview]
Message-ID: <20130702212102.GI26307@localhost> (raw)
In-Reply-To: <20130702121753.3fac0cc4fb35893aec154178@linux-foundation.org>

On Tue, Jul 02, 2013 at 12:17:53PM -0700, Andrew Morton wrote:
> On Tue, 2 Jul 2013 08:40:42 -0700 Joel Becker <jlbec@evilplan.org> wrote:
> 
> > On Tue, Jul 02, 2013 at 11:12:33AM +0800, Junxiao Bi wrote:
> > > 
> > > 4244         mutex_lock_nested(&new_inode->i_mutex, I_MUTEX_CHILD);
> > > 4245         ret = ocfs2_inode_lock_nested(new_inode, &new_bh, 1,
> > > 4246                                       OI_LS_REFLINK_TARGET);
> > 
> > 	The i_mutex protects the VFS inode.  The ocfs2_inode_lock
> > protects against other nodes in the cluster.  new_oi->ip_lock protects
> > the ocfs2_inode_info specific stuff.
> > 	Reading a bit out of new_oi->ip_dyn_features is probably safe;
> > we are protected from inline data being converted to extents.  So I
> > suppose this isn't terribly different than xattr_ibody_init().
> 
> Was that a soggy ack?  :)

It was :-)  I've been trying to silence the niggles in the back of my
head.  But I think I comfortable.

Acked-by: Joel Becker <jlbec@evilplan.org>

> 

-- 

"You cannot bring about prosperity by discouraging thrift. You cannot
 strengthen the weak by weakening the strong. You cannot help the wage
 earner by pulling down the wage payer. You cannot further the
 brotherhood of man by encouraging class hatred. You cannot help the
 poor by destroying the rich. You cannot build character and courage by
 taking away a man's initiative and independence. You cannot help men
 permanently by doing for them what they could and should do for
 themselves."
	- Abraham Lincoln 

			http://www.jlbec.org/
			jlbec at evilplan.org

      reply	other threads:[~2013-07-02 21:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28  2:56 [Ocfs2-devel] [PATCH V3] ocfs2: xattr: fix inlined xattr reflink Junxiao Bi
2013-07-01 22:57 ` Joel Becker
2013-07-02  1:08   ` Junxiao Bi
2013-07-02  1:50     ` Joel Becker
2013-07-02  3:12       ` Junxiao Bi
2013-07-02 15:40         ` Joel Becker
2013-07-02 19:17           ` Andrew Morton
2013-07-02 21:21             ` Joel Becker [this message]

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=20130702212102.GI26307@localhost \
    --to=jlbec@evilplan.org \
    --cc=ocfs2-devel@oss.oracle.com \
    /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.