ext4: add ext4_sb_bread() to disambiguate ENOMEM cases
Today, when sb_bread() returns NULL, this can either be because of an I/O error or because the system failed to allocate the buffer. Since it's an old interface, changing would require changing many call sites. So instead we create our own ext4_sb_bread(), which also allows us to set the REQ_META flag. Also fixed a problem in the xattr code where a NULL return in a function could also mean that the xattr was not found, which could lead to the wrong error getting returned to userspace. Fixes: ac27a0ec ("ext4: initial copy of files from ext3") Cc: stable@kernel.org # 2.6.19 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
parent
2e6e902d
-
mentioned in commit 904e2257
-
mentioned in commit aab1eab0
-
mentioned in commit c316ebcf
-
mentioned in commit 53e67b64
-
mentioned in commit 9ad75e78
-
mentioned in commit 76dc7761
-
mentioned in commit 681ff9a0
-
mentioned in commit 896a7e7d
-
mentioned in commit e941b712
-
mentioned in commit a95df6f0
-
mentioned in commit b37c0ede
Please register or sign in to comment