Signed-off-by: Anand Jain <anand.j...@oracle.com>
---
 disk-io.c   | 2 +-
 find-root.c | 2 +-
 volumes.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/disk-io.c b/disk-io.c
index 796394f..c2e1c8a 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -880,7 +880,7 @@ static struct btrfs_fs_info *__open_ctree_fd(int fp, const 
char *path,
        disk_super = fs_info->super_copy;
        ret = btrfs_read_dev_super(fs_devices->latest_bdev,
                                   disk_super, sb_bytenr,
-                                  BTRFS_SCAN_BACKUP_SB);
+                                  0ull);
        if (ret) {
                printk("No valid btrfs found\n");
                goto out_devices;
diff --git a/find-root.c b/find-root.c
index 9be4fc7..9923209 100644
--- a/find-root.c
+++ b/find-root.c
@@ -151,7 +151,7 @@ static struct btrfs_root *open_ctree_broken(int fd, const 
char *device)
        disk_super = fs_info->super_copy;
        ret = btrfs_read_dev_super(fs_devices->latest_bdev,
                                   disk_super, BTRFS_SUPER_INFO_OFFSET,
-                                  BTRFS_SCAN_BACKUP_SB);
+                                  0ull);
        if (ret) {
                printk("No valid btrfs found\n");
                goto out_devices;
diff --git a/volumes.c b/volumes.c
index 1a28cdd..9003412 100644
--- a/volumes.c
+++ b/volumes.c
@@ -228,7 +228,7 @@ int btrfs_scan_one_device(int fd, const char *path,
        }
        disk_super = (struct btrfs_super_block *)buf;
        ret = btrfs_read_dev_super(fd, disk_super, super_offset,
-               BTRFS_SCAN_BACKUP_SB);
+                                  0ull);
        if (ret < 0) {
                ret = -EIO;
                goto error_brelse;
-- 
1.8.1.227.g44fe835

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to