aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-02-20 12:51:21 +0100
committerDavid Sterba <dsterba@suse.com>2024-02-20 12:51:21 +0100
commit52ea295038d8b9d419e18a1dd90adc738d033838 (patch)
tree10fa467c41916d307b28a058575d94578eac5dfb /common
parent221114c36f6f36e4232ca1c829c77ef5f98c8a5e (diff)
downloadbtrfs-progs-52ea295038d8b9d419e18a1dd90adc738d033838.tar.gz
btrfs-progs: use wrapper btrfs_open_dir_fd() in btrfs_open_mnt_fd()
The arguments now match the wrapper, use it. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'common')
-rw-r--r--common/open-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/open-utils.c b/common/open-utils.c
index 406031e0..55e5d37a 100644
--- a/common/open-utils.c
+++ b/common/open-utils.c
@@ -254,7 +254,7 @@ int btrfs_open_mnt_fd(const char *path)
error("'%s' is not a mounted btrfs device", path);
return -EINVAL;
}
- ret = btrfs_open_fd2(mp, true, true);
+ ret = btrfs_open_dir_fd(mp);
} else {
ret = btrfs_open_dir_fd(path);
}