summaryrefslogtreecommitdiffstats
path: root/fs/jbd2/transaction.c
diff options
context:
space:
mode:
authorTheodore Ts'o2018-11-25 23:20:31 +0100
committerTheodore Ts'o2018-11-25 23:20:31 +0100
commitfb265c9cb49e2074ddcdd4de99728aefdd3b3592 (patch)
tree7504b10469a8cbe92672f54e664ae5495e797c50 /fs/jbd2/transaction.c
parentLinux 4.20-rc4 (diff)
downloadkernel-qcow2-linux-fb265c9cb49e2074ddcdd4de99728aefdd3b3592.tar.gz
kernel-qcow2-linux-fb265c9cb49e2074ddcdd4de99728aefdd3b3592.tar.xz
kernel-qcow2-linux-fb265c9cb49e2074ddcdd4de99728aefdd3b3592.zip
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: ac27a0ec112a ("ext4: initial copy of files from ext3") Cc: stable@kernel.org # 2.6.19 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/transaction.c')
0 files changed, 0 insertions, 0 deletions