summaryrefslogtreecommitdiff
path: root/fs/ocfs2/symlink.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-07-16 21:48:57 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 20:18:57 +0300
commitd70fa34f9924ca74a317b107e322179e0966341b (patch)
tree44336a5fab779f4e6001ceead0113ea23d07bb5d /fs/ocfs2/symlink.c
parentcb2273a415af31be3eec9678cdcfcd74d56f33b7 (diff)
downloadlinux-d70fa34f9924ca74a317b107e322179e0966341b.tar.xz
ocfs2: Use struct_size()
Use struct_size() instead of hand-writing it, when allocating a structure with a flex array. This is less verbose. Link: https://lkml.kernel.org/r/9d99ea2090739f816d0dc0c4ebaa42b26fc48a9e.1689533270.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Gang He <ghe@suse.com> Cc: Jun Piao <piaojun@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/symlink.c')
0 files changed, 0 insertions, 0 deletions