]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Fix mknod regression
authorChristoph Hellwig <hch@infradead.org>
Thu, 20 Dec 2007 23:58:56 +0000 (10:58 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 21 Dec 2007 00:39:58 +0000 (11:39 +1100)
commit0b2f0923c84aa22aee9df1580949910b15ca08fc
tree8c768d937724751de565eded68d518f22d263e3e
parentf13a179c89cb45e3fa29562aaf1d6c392df9c04f
[XFS] Fix mknod regression

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.

SGI-PV: 974873
SGI-Modid: xfs-linux-melb:xfs-kern:30273a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_iops.c