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:
fa48918
)
btrfs-progs: Refactor nodesize user in extent_io.c
author
Qu Wenruo
<quwenruo@cn.fujitsu.com>
Thu, 18 May 2017 01:27:32 +0000
(09:27 +0800)
committer
David Sterba
<dsterba@suse.com>
Mon, 3 Jul 2017 11:35:10 +0000
(13:35 +0200)
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
extent_io.c
patch
|
blob
|
history
diff --git
a/extent_io.c
b/extent_io.c
index
915c6ed
..
26a6786
100644
(file)
--- a/
extent_io.c
+++ b/
extent_io.c
@@
-765,7
+765,7
@@
int write_data_to_disk(struct btrfs_fs_info *info, void *buf, u64 offset,
u64 stripe_len = this_len;
this_len = min(this_len, bytes_left);
- this_len = min(this_len, (u64)info->
tree_root->
nodesize);
+ this_len = min(this_len, (u64)info->nodesize);
eb = malloc(sizeof(struct extent_buffer) + this_len);
if (!eb) {