Commit e8619bc
fs/ntfs3: return folios from ntfs_lock_new_page()
ntfs_lock_new_page() currently returns a struct page * but it primarily
operates on folios via __filemap_get_folio(). Convert it to return a
struct folio * and use folio_alloc() + __folio_set_locked() for the
temporary page used to avoid data corruption during decompression.
When the cached folio is not uptodate, preserve the existing behavior by
using folio_file_page() and converting the returned page back to a
folio.
Update ni_readpage_cmpr() and ni_decompress_file() to handle the new
return type while keeping the existing struct page * array and the
unlock_page()/put_page() cleanup paths unchanged.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202602072013.jwrURE2e-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202602071921.nGIiI1J5-lkp@intel.com/
Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
[almaz.alexandrovich@paragon-software.com: removed ni_fiemap function,
added reported-by and closes tags to commit]
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>1 parent 3a2141b commit e8619bc
1 file changed
Lines changed: 26 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | | - | |
1856 | | - | |
| 1855 | + | |
| 1856 | + | |
1857 | 1857 | | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
| 1858 | + | |
| 1859 | + | |
1861 | 1860 | | |
1862 | 1861 | | |
1863 | | - | |
| 1862 | + | |
1864 | 1863 | | |
1865 | | - | |
1866 | | - | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
1867 | 1871 | | |
1868 | 1872 | | |
1869 | 1873 | | |
1870 | 1874 | | |
1871 | | - | |
1872 | | - | |
| 1875 | + | |
| 1876 | + | |
1873 | 1877 | | |
1874 | | - | |
1875 | | - | |
| 1878 | + | |
| 1879 | + | |
1876 | 1880 | | |
1877 | 1881 | | |
1878 | 1882 | | |
| |||
1894 | 1898 | | |
1895 | 1899 | | |
1896 | 1900 | | |
| 1901 | + | |
1897 | 1902 | | |
1898 | 1903 | | |
1899 | 1904 | | |
| |||
1929 | 1934 | | |
1930 | 1935 | | |
1931 | 1936 | | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
1935 | 1940 | | |
1936 | 1941 | | |
1937 | | - | |
| 1942 | + | |
1938 | 1943 | | |
1939 | 1944 | | |
1940 | 1945 | | |
| |||
2023 | 2028 | | |
2024 | 2029 | | |
2025 | 2030 | | |
2026 | | - | |
| 2031 | + | |
2027 | 2032 | | |
2028 | | - | |
2029 | | - | |
| 2033 | + | |
| 2034 | + | |
2030 | 2035 | | |
2031 | 2036 | | |
2032 | 2037 | | |
2033 | 2038 | | |
2034 | | - | |
| 2039 | + | |
2035 | 2040 | | |
2036 | 2041 | | |
2037 | | - | |
| 2042 | + | |
2038 | 2043 | | |
2039 | 2044 | | |
2040 | 2045 | | |
| |||
0 commit comments