mirror of https://gitee.com/openkylin/linux.git
Btrfs: uninit variable fixes in send/receive
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
113c1cb530
commit
b24baf6917
|
@ -2676,7 +2676,7 @@ static int process_recorded_refs(struct send_ctx *sctx)
|
||||||
struct ulist_iterator uit;
|
struct ulist_iterator uit;
|
||||||
struct ulist_node *un;
|
struct ulist_node *un;
|
||||||
struct fs_path *valid_path = NULL;
|
struct fs_path *valid_path = NULL;
|
||||||
u64 ow_inode;
|
u64 ow_inode = 0;
|
||||||
u64 ow_gen;
|
u64 ow_gen;
|
||||||
int did_overwrite = 0;
|
int did_overwrite = 0;
|
||||||
int is_orphan = 0;
|
int is_orphan = 0;
|
||||||
|
@ -3553,7 +3553,7 @@ static int send_write(struct send_ctx *sctx, u64 offset, u32 len)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct fs_path *p;
|
struct fs_path *p;
|
||||||
loff_t pos = offset;
|
loff_t pos = offset;
|
||||||
int readed;
|
int readed = 0;
|
||||||
mm_segment_t old_fs;
|
mm_segment_t old_fs;
|
||||||
|
|
||||||
p = fs_path_alloc(sctx);
|
p = fs_path_alloc(sctx);
|
||||||
|
|
Loading…
Reference in New Issue