Btrfs: Correct redundant test in add_inode_ref
commit631c07c8d12bcc6ce4a0fbfbd64ea843d78e2b10
authorJulia Lawall <julia@diku.dk>
Mon, 27 Jul 2009 17:57:00 +0000 (27 13:57 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 27 Jul 2009 17:57:00 +0000 (27 13:57 -0400)
tree67c1564674da446c0472d8265f67843ff6cbe891
parent9779b72f0584fd53e0de53f62f205bf0dc0db553
Btrfs: Correct redundant test in add_inode_ref

dir has already been tested.  It seems that this test should be on the
recently returned value inode.

A simplified version of the semantic match that finds this problem is as
follows: (http://www.emn.fr/x-info/coccinelle/)

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/tree-log.c