Commit 51d3d95
f2fs: fix to convert log type to segment data type correctly
This patch introduces a new helper log_type_to_seg_type() to convert
log type to segment data type, and uses it to clean up opened codes
in build_curseg(), and also it fixes to convert log type before use
in do_write_page().
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>1 parent 1df2bc3 commit 51d3d95
1 file changed
+28
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3812 | 3812 | | |
3813 | 3813 | | |
3814 | 3814 | | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
3815 | 3838 | | |
3816 | 3839 | | |
3817 | | - | |
3818 | | - | |
| 3840 | + | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
3819 | 3844 | | |
3820 | 3845 | | |
3821 | 3846 | | |
| |||
4797 | 4822 | | |
4798 | 4823 | | |
4799 | 4824 | | |
4800 | | - | |
4801 | | - | |
4802 | | - | |
4803 | | - | |
4804 | | - | |
4805 | | - | |
| 4825 | + | |
4806 | 4826 | | |
4807 | 4827 | | |
4808 | 4828 | | |
| |||
0 commit comments