]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: do not need to check return value of xlog_kvmalloc()
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Sun, 18 Sep 2022 20:55:14 +0000 (06:55 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 18 Sep 2022 20:55:14 +0000 (06:55 +1000)
commit302d6b0101c26d40b6c009f5baead21b86dae032
treee9ae50e7186a7c0458a56a8c53f4bb479ceff7f6
parente18a0757a457b627c4df0276c744dfdee91e120a
xfs: do not need to check return value of xlog_kvmalloc()

In xfs_attri_log_nameval_alloc(), xlog_kvmalloc() is called
to alloc memory, which will always return
successfully, so we donot need to check return value.

Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_attr_item.c