Skip to content

Commit 13e88e1

Browse files
asjkdave
authored andcommitted
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 b25de9d 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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 28d70e2 commit 13e88e1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

fs/btrfs/disk-io.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3521,9 +3521,6 @@ static int write_dev_flush(struct btrfs_device *device, int wait)
35213521
struct bio *bio;
35223522
int ret = 0;
35233523

3524-
if (device->nobarriers)
3525-
return 0;
3526-
35273524
if (wait) {
35283525
bio = device->flush_bio;
35293526
if (!bio)

fs/btrfs/volumes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ struct btrfs_device {
123123
struct list_head resized_list;
124124

125125
/* for sending down flush barriers */
126-
int nobarriers;
127126
struct bio *flush_bio;
128127
struct completion flush_wait;
129128

0 commit comments

Comments
 (0)