]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: optimize check for stale device
authorAnand Jain <anand.jain@oracle.com>
Sat, 13 Feb 2016 02:01:40 +0000 (10:01 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 28 Apr 2016 08:59:13 +0000 (10:59 +0200)
commitb540263159e5badeb706438860cc4370f20713f5
treeb72d8b33eaec437da2906c021a841399550b656b
parentfee99805dccfc78fb47e3cdb9d48b71e9989b7d4
btrfs: optimize check for stale device

Optimize check for stale device to only be checked when there is device
added or changed. If there is no update to the device, there is no need
to call btrfs_free_stale_device().

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c