]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: tiny cleanup for xfs_link
authorChristoph Hellwig <hch@lst.de>
Wed, 4 Feb 2009 08:34:20 +0000 (09:34 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Wed, 4 Feb 2009 08:34:20 +0000 (09:34 +0100)
commit38d5579f0d5468a8dbabf4d410135711ce902503
tree08b307dff77bf567ff2cb7a624010c4654690eaa
parentcca34207459de24daac93c80041ea8abc9826030
xfs: tiny cleanup for xfs_link

The source and target inodes are guaranteed to never be the same by the VFS,
so no need to check for that (and we would get into bad trouble later anyway
if that were the case).  Also clean up the error handling to use two gotos
instead of nested conditions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_vnodeops.c