public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Lachlan McIlroy <lachlan@sgi.com>
To: David Chinner <dgc@sgi.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	Bret Towe <magnade@gmail.com>,
	xfs@oss.sgi.com
Subject: Re: xfs mknod regression
Date: Wed, 19 Dec 2007 12:13:30 +1100	[thread overview]
Message-ID: <4768703A.2000603@sgi.com> (raw)
In-Reply-To: <20071219010607.GT4396912@sgi.com>

David Chinner wrote:
> On Wed, Dec 19, 2007 at 11:37:45AM +1100, David Chinner wrote:
>> On Tue, Dec 18, 2007 at 05:36:42PM +0000, Christoph Hellwig wrote:
>>> This was broken by my '[XFS] simplify xfs_create/mknod/symlink prototype',
>>> which assigned the re-shuffled ondisk dev_t back to the rdev variable in
>>> xfs_vn_mknod.  Because of that i_rdev is set to the ondisk dev_t instead
>>> of the linux dev_t later down the function.
>>>
>>> Fortunately the fix for it is trivial:  we can just remove the
>>> assignment because xfs_revalidate_inode has done the proper job before
>>> unlocking the inode.
>>>
>>>
>>> Signed-off-by: Christoph Hellwig <hch@lst.de>
>>>
>>> Index: linux-2.6-xfs/fs/xfs/linux-2.6/xfs_iops.c
>>> ===================================================================
>>> --- linux-2.6-xfs.orig/fs/xfs/linux-2.6/xfs_iops.c	2007-12-18 18:23:32.000000000 +0100
>>> +++ linux-2.6-xfs/fs/xfs/linux-2.6/xfs_iops.c	2007-12-18 18:23:43.000000000 +0100
>>> @@ -345,9 +345,7 @@ xfs_vn_mknod(
>>>  		ASSERT(vp);
>>>  		ip = vn_to_inode(vp);
>>>  
>>> -		if (S_ISCHR(mode) || S_ISBLK(mode))
>>> -			ip->i_rdev = rdev;
>>> -		else if (S_ISDIR(mode))
>>> +		if (S_ISDIR(mode))
>>>  			xfs_validate_fields(ip);
>>>  		d_instantiate(dentry, ip);
>>>  		xfs_validate_fields(dir);
>> Thanks for this, Christoph - I'll run some tests on it and check it in.
> 
> Can I get an eyeball or two on the qa test below so i can check it in at the
> same time?
> 

QA test looks fine Dave.

  reply	other threads:[~2007-12-19  1:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-18  4:48 xfs mknod regression Bret Towe
2007-12-18 13:46 ` David Chinner
2007-12-18 17:36 ` Christoph Hellwig
2007-12-19  0:37   ` David Chinner
2007-12-19  1:06     ` David Chinner
2007-12-19  1:13       ` Lachlan McIlroy [this message]
2007-12-20  0:04     ` Rafael J. Wysocki
2007-12-19  2:46   ` Bret Towe

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=4768703A.2000603@sgi.com \
    --to=lachlan@sgi.com \
    --cc=dgc@sgi.com \
    --cc=hch@infradead.org \
    --cc=magnade@gmail.com \
    --cc=xfs@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox