Commit 6c2b324
ext4: add new ext4_ext_path_brelse() helper
Add ext4_ext_path_brelse() helper function to reduce duplicate code
and ensure that path->p_bh is set to NULL after it is released.
Signed-off-by: Baokun Li <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Ojaswin Mujoo <[email protected]>
Tested-by: Ojaswin Mujoo <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>1 parent dcaa6c3 commit 6c2b324
1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
635 | 639 | | |
636 | 640 | | |
637 | 641 | | |
638 | | - | |
639 | | - | |
| 642 | + | |
640 | 643 | | |
641 | 644 | | |
642 | 645 | | |
| |||
1889 | 1892 | | |
1890 | 1893 | | |
1891 | 1894 | | |
1892 | | - | |
1893 | | - | |
| 1895 | + | |
1894 | 1896 | | |
1895 | 1897 | | |
1896 | 1898 | | |
| |||
2959 | 2961 | | |
2960 | 2962 | | |
2961 | 2963 | | |
2962 | | - | |
2963 | | - | |
| 2964 | + | |
2964 | 2965 | | |
2965 | 2966 | | |
2966 | 2967 | | |
| |||
3022 | 3023 | | |
3023 | 3024 | | |
3024 | 3025 | | |
3025 | | - | |
3026 | | - | |
| 3026 | + | |
3027 | 3027 | | |
3028 | 3028 | | |
3029 | 3029 | | |
| |||
0 commit comments