projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
btrfs-progs: free-space-cache: Enhance free space cache free space check
[platform/upstream/btrfs-progs.git]
/
cmds-inspect-tree-stats.c
diff --git
a/cmds-inspect-tree-stats.c
b/cmds-inspect-tree-stats.c
index
bcba7fb
..
eced0db
100644
(file)
--- a/
cmds-inspect-tree-stats.c
+++ b/
cmds-inspect-tree-stats.c
@@
-153,7
+153,6
@@
static int walk_nodes(struct btrfs_root *root, struct btrfs_path *path,
path->slots[level] = i;
if ((level - 1) > 0 || find_inline) {
tmp = read_tree_block(root->fs_info, cur_blocknr,
path->slots[level] = i;
if ((level - 1) > 0 || find_inline) {
tmp = read_tree_block(root->fs_info, cur_blocknr,
- nodesize,
btrfs_node_ptr_generation(b, i));
if (!extent_buffer_uptodate(tmp)) {
error("failed to read blocknr %llu",
btrfs_node_ptr_generation(b, i));
if (!extent_buffer_uptodate(tmp)) {
error("failed to read blocknr %llu",
@@
-337,7
+336,7
@@
static int calc_root_size(struct btrfs_root *tree_root, struct btrfs_key *key,
stat.max_cluster_size = root->fs_info->nodesize;
path.nodes[level] = root->node;
if (gettimeofday(&start, NULL)) {
stat.max_cluster_size = root->fs_info->nodesize;
path.nodes[level] = root->node;
if (gettimeofday(&start, NULL)) {
- error("cannot get time: %
s", strerror(errno)
);
+ error("cannot get time: %
m"
);
goto out;
}
if (!level) {
goto out;
}
if (!level) {
@@
-351,7
+350,7
@@
static int calc_root_size(struct btrfs_root *tree_root, struct btrfs_key *key,
if (ret)
goto out;
if (gettimeofday(&end, NULL)) {
if (ret)
goto out;
if (gettimeofday(&end, NULL)) {
- error("cannot get time: %
s", strerror(errno)
);
+ error("cannot get time: %
m"
);
goto out;
}
timeval_subtract(&diff, &end, &start);
goto out;
}
timeval_subtract(&diff, &end, &start);