[PATCH v3] ext4: increase the protection of nlink dec and ext4 inode destroy

2017-01-06 Thread yi zhang
Because of the disk and hardware issue, the ext4 filesystem have many errors, the inode->i_nlink of ext4 becomes zero abnormally but the dentry is still positive, it will cause memory corruption after the following process: 1) Due to the inode->i_nlink is 0, this inode will be added into the

[PATCH v3] ext4: increase the protection of nlink dec and ext4 inode destroy

2017-01-06 Thread yi zhang
Because of the disk and hardware issue, the ext4 filesystem have many errors, the inode->i_nlink of ext4 becomes zero abnormally but the dentry is still positive, it will cause memory corruption after the following process: 1) Due to the inode->i_nlink is 0, this inode will be added into the