projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e466c8
)
Btrfs-progs: do not run ioctls in check_mounted_where()
author
Wang Shilong
<wangsl.fnst@cn.fujitsu.com>
Wed, 18 Sep 2013 08:27:33 +0000
(16:27 +0800)
committer
Chris Mason
<chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:22:26 +0000
(08:22 -0400)
We don't need to run ioctls when checking whether btrfs
has mounted somewhere.
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
utils.c
patch
|
blob
|
history
diff --git
a/utils.c
b/utils.c
index
68aa534
..
d365380
100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-958,7
+958,7
@@
int check_mounted_where(int fd, const char *file, char *where, int size,
/* scan other devices */
if (is_btrfs && total_devs > 1) {
- if((ret = btrfs_scan_for_fsid(
1
)))
+ if((ret = btrfs_scan_for_fsid(
0
)))
return ret;
}