]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix duplicate checking logic
authorJosef Bacik <josef@redhat.com>
Mon, 6 Jun 2011 14:50:35 +0000 (10:50 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 8 Jun 2011 20:37:29 +0000 (16:37 -0400)
commit5ffed3eedeb40d5107d9a727c29077638d760ddd
tree5cb1a6437051c22f2f3ecca9a4c7d60e4192d377
parent06a829263b1ae12d2055a18e9303ed251994e4a0
Btrfs: fix duplicate checking logic

When merging my code into the integration test the second check for duplicate
entries got screwed up.  This patch fixes it by dropping ret2 and just using ret
for the return value, and checking if we got an error before adding the bitmap
to the local list.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/free-space-cache.c