summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaolin Liu <liubaolin@kylinos.cn>2026-01-06 09:20:16 +0300
committerTheodore Ts'o <tytso@mit.edu>2026-01-20 06:37:06 +0300
commit591a4ab9b8b125bf72a345ca6f5c0ee4481db02b (patch)
tree5fb7ad5387220cc26adb7a858e5d92a9204bba40
parent5f18f60d56c0cedd17826882b66b94f1a52f65ef (diff)
downloadlinux-591a4ab9b8b125bf72a345ca6f5c0ee4481db02b.tar.xz
ext4: remove redundant NULL check after __GFP_NOFAIL
Remove redundant NULL check after kcalloc() with GFP_NOFS | __GFP_NOFAIL. Signed-off-by: Baolin Liu <liubaolin@kylinos.cn> Reviewed-by: Zhang Yi <yi.zhang@huawei.com> Link: https://patch.msgid.link/20260106062016.154573-1-liubaolin12138@163.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--fs/ext4/extents.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 8597110f50ef..3c288d4b19d2 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2949,10 +2949,6 @@ again:
} else {
path = kcalloc(depth + 1, sizeof(struct ext4_ext_path),
GFP_NOFS | __GFP_NOFAIL);
- if (path == NULL) {
- ext4_journal_stop(handle);
- return -ENOMEM;
- }
path[0].p_maxdepth = path[0].p_depth = depth;
path[0].p_hdr = ext_inode_hdr(inode);
i = 0;