Repository navigation
Commit cab95d4
UBIFS: allocate lpt dump buffer on demand
Instead of using pre-allocated 'c->dbg->buf' buffer in
'dump_lpt_leb()', dynamically allocate it when needed. The intend
is to get rid of the pre-allocated 'c->dbg->buf' buffer and save
128KiB of RAM (or more if PEB size is larger). Indeed, currently we
allocate this memory even if the user never enables any self-check,
which is wasteful.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>1 parent 6fb324a commit cab95d4
1 file changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1881 | 1881 | | |
1882 | 1882 | | |
1883 | 1883 | | |
1884 | | - | |
| 1884 | + | |
1885 | 1885 | | |
1886 | 1886 | | |
1887 | 1887 | | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1888 | 1894 | | |
1889 | 1895 | | |
1890 | 1896 | | |
1891 | | - | |
| 1897 | + | |
1892 | 1898 | | |
1893 | 1899 | | |
1894 | 1900 | | |
1895 | | - | |
| 1901 | + | |
1896 | 1902 | | |
1897 | 1903 | | |
1898 | | - | |
| 1904 | + | |
1899 | 1905 | | |
1900 | 1906 | | |
1901 | 1907 | | |
1902 | | - | |
| 1908 | + | |
1903 | 1909 | | |
1904 | 1910 | | |
1905 | 1911 | | |
| |||
1909 | 1915 | | |
1910 | 1916 | | |
1911 | 1917 | | |
1912 | | - | |
| 1918 | + | |
1913 | 1919 | | |
1914 | 1920 | | |
1915 | 1921 | | |
| |||
1934 | 1940 | | |
1935 | 1941 | | |
1936 | 1942 | | |
1937 | | - | |
| 1943 | + | |
1938 | 1944 | | |
1939 | 1945 | | |
1940 | 1946 | | |
| |||
1955 | 1961 | | |
1956 | 1962 | | |
1957 | 1963 | | |
1958 | | - | |
| 1964 | + | |
1959 | 1965 | | |
1960 | 1966 | | |
1961 | | - | |
| 1967 | + | |
1962 | 1968 | | |
1963 | 1969 | | |
1964 | 1970 | | |
1965 | 1971 | | |
1966 | 1972 | | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
1967 | 1976 | | |
1968 | 1977 | | |
1969 | 1978 | | |
| |||
0 commit comments