{"push_id":588963527,"size":1,"distinct_size":1,"ref":"refs/heads/f2fs","head":"71df7875734e489beb6c1ca387123adf00ea8aa4","before":"41439f2e4bf8934db09f1a81790391ecdb74fead","commits":[{"sha":"71df7875734e489beb6c1ca387123adf00ea8aa4","author":{"email":"20424effba9d4aeeb410130c5f23aa328fa29e09@samsung.com","name":"Jaegeuk Kim"},"message":"f2fs: fix the potential mismatch between dir's i_size and i_blocks\n\nThis is the erroneous scenario.\n\n                             i_size    on-disk i_size    i_blocks\n__f2fs_add_link()             4096           4096           2\n get_new_data_page            8192           4096           3\n -ENOSPC = init_inode_metadata\n checkpoint                     -            4096           3\n POR and reboot\n\n__f2fs_add_link()             4096           4096           3\n page = get_new_data_page (page->index = 1 by NEW_ADDR)\n add a dentry to the page successfully\n\nf2fs_rmdir()\n f2fs_empty_dir()             4096           4096           3\n f2fs_unlink() goes, since there is no valid dentry due to i_size = 4096.\n But, still there is one dentry in page->index = 1.\n\nSo this patch moves the code to write dir->i_size into on-disk i_size in order\nto sync dir's i_size, on-disk i_size, and its i_blocks.\n\nSigned-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>","distinct":true,"url":"https://api.github.com/repos/Qualcomm-msm8974/M8-Sense-5.0/commits/71df7875734e489beb6c1ca387123adf00ea8aa4"}]}