]> git.ipfire.org Git - people/ms/linux.git/commit
Btrfs: reset ret in record_one_backref
authorJosef Bacik <jbacik@fusionio.com>
Mon, 22 Jul 2013 16:50:37 +0000 (12:50 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 01:14:32 +0000 (18:14 -0700)
commit6593b34b1251c27d1949878f04bf58130d47625f
treecddbc40373940f97ae48ed351e1024914428a23a
parent557801d93e4f3e77c7149da1acd6b068c32c90fb
Btrfs: reset ret in record_one_backref

commit 50f1319cb5f7690e4d9de18d1a75ea89296d0e53 upstream.

I was getting warnings when running find ./ -type f -exec btrfs fi defrag -f {}
\; from record_one_backref because ret was set.  Turns out it was because it was
set to 1 because the search slot didn't come out exact and we never reset it.
So reset it to 0 right after the search so we don't leak this and get
uneccessary warnings.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/inode.c