Commit 1ce06d4
btrfs: use a single variable to track return value at btrfs_page_mkwrite()
We have two variables to track return values, ret and ret2, with types
vm_fault_t (an unsigned int type) and int, which makes it a bit confusing
and harder to keep track. So use a single variable, of type int, and under
the 'out' label return vmf_error(ret) in case ret contains an error,
otherwise return VM_FAULT_NOPAGE. This is equivalent to what we had before
and it's simpler.
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent d8cddf2 commit 1ce06d4
1 file changed
+16
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
1844 | | - | |
1845 | | - | |
| 1844 | + | |
1846 | 1845 | | |
1847 | 1846 | | |
1848 | 1847 | | |
| |||
1863 | 1862 | | |
1864 | 1863 | | |
1865 | 1864 | | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
1869 | | - | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
1870 | 1868 | | |
1871 | | - | |
1872 | 1869 | | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
| 1870 | + | |
| 1871 | + | |
1876 | 1872 | | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
1881 | 1873 | | |
1882 | 1874 | | |
1883 | 1875 | | |
| |||
1891 | 1883 | | |
1892 | 1884 | | |
1893 | 1885 | | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
| 1886 | + | |
| 1887 | + | |
1897 | 1888 | | |
1898 | 1889 | | |
1899 | 1890 | | |
| |||
1933 | 1924 | | |
1934 | 1925 | | |
1935 | 1926 | | |
1936 | | - | |
| 1927 | + | |
1937 | 1928 | | |
1938 | | - | |
| 1929 | + | |
1939 | 1930 | | |
1940 | | - | |
1941 | 1931 | | |
1942 | 1932 | | |
1943 | 1933 | | |
| |||
1974 | 1964 | | |
1975 | 1965 | | |
1976 | 1966 | | |
1977 | | - | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
1978 | 1973 | | |
1979 | 1974 | | |
1980 | 1975 | | |
| |||
0 commit comments