diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 740ae8c71701077de03396fc0c0bae377100ad4c..35bf83876f3fe51eae6f4769a89246981f10d1c9 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1244,7 +1244,7 @@ static noinline int prepare_pages(struct inode *inode, struct page **pages, int i; unsigned long index = pos >> PAGE_CACHE_SHIFT; gfp_t mask = btrfs_alloc_write_mask(inode->i_mapping); - int err; + int err = 0; int faili; for (i = 0; i < num_pages; i++) {