]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: delete unused member nobarriers
authorAnand Jain <anand.jain@oracle.com>
Thu, 6 Apr 2017 03:22:52 +0000 (11:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 14:12:07 +0000 (16:12 +0200)
commit3bfd7d22137d1fd6ea38f79498ac2c1814f3597a
treedfc4698fc5983b4c4545abc8e425a11e426d5645
parent4bfc2a5d82cd1bcc6da6b64d2106eb255dadc897
btrfs: delete unused member nobarriers

The last consumer of nobarriers is removed by the commit [1] and sync
won't fail with EOPNOTSUPP anymore. Thus, now when write cache is write
through it just return success without actually transpiring such a
request to the block device/lun.

[1]
commit 043080cfa9432d5819e581fbd6b7ae8a7e84b8ad
block: remove BIO_EOPNOTSUPP

And, as the device/lun write cache state may change dynamically saving
such as state won't help either. So deleting the member nobarriers.

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