aboutsummaryrefslogtreecommitdiffstats
path: root/disk-io.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2013-07-15 13:30:47 +0800
committerDavid Sterba <dsterba@suse.cz>2013-08-09 14:32:36 +0200
commit65ed88d472fcb2278b18ecc033cfc8e7e957bc9f (patch)
treec08afaa444e3de3cea9841343dba4c1d1ebf1c46 /disk-io.c
parentc125b7cf43aac815782ded0a0f36060e81c79726 (diff)
downloadbtrfs-progs-65ed88d472fcb2278b18ecc033cfc8e7e957bc9f.tar.gz
btrfs-progs-65ed88d472fcb2278b18ecc033cfc8e7e957bc9f.tar.xz
btrfs-progs-65ed88d472fcb2278b18ecc033cfc8e7e957bc9f.zip
btrfs-progs: btrfs_scan_for_fsid doesn't need all the arguments
btrfs_scan_for_fsid uses only one argument run_ioctl out of 3 so remove the rest two of them Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-io.c b/disk-io.c
index 9cfbea1..970f38a 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -922,7 +922,7 @@ int btrfs_scan_fs_devices(int fd, const char *path,
}
if (total_devs != 1) {
- ret = btrfs_scan_for_fsid(*fs_devices, total_devs, 1);
+ ret = btrfs_scan_for_fsid(1);
if (ret)
return ret;
}