Message ID | 20170518033857.15002-11-quwenruo@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/extent_io.c b/extent_io.c index 915c6ed8..26a67865 100644 --- 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) {
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> --- extent_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)