ext4: Initialize writeback_index to 0 when allocating a new inode

The write_cache_pages() function uses the mapping->writeback_index as
the starting index to write out when range_cyclic is set. Properly
initialize writeback_index so that we start the writeout at index 0.

This was found when debugging the small file fragmentation on ext4.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

authored by Aneesh Kumar K.V and committed by Theodore Ts'o 91246c00 16eb7295

+1
+1
fs/ext4/super.c
··· 568 #endif 569 ei->i_block_alloc_info = NULL; 570 ei->vfs_inode.i_version = 1; 571 memset(&ei->i_cached_extent, 0, sizeof(struct ext4_ext_cache)); 572 INIT_LIST_HEAD(&ei->i_prealloc_list); 573 spin_lock_init(&ei->i_prealloc_lock);
··· 568 #endif 569 ei->i_block_alloc_info = NULL; 570 ei->vfs_inode.i_version = 1; 571 + ei->vfs_inode.i_data.writeback_index = 0; 572 memset(&ei->i_cached_extent, 0, sizeof(struct ext4_ext_cache)); 573 INIT_LIST_HEAD(&ei->i_prealloc_list); 574 spin_lock_init(&ei->i_prealloc_lock);