]> git.baikalelectronics.ru Git - kernel.git/commit
fs/afs: use struct_size() in kzalloc()
authorZhengyuan Liu <liuzhengyuan@kylinos.cn>
Thu, 20 Jun 2019 17:12:17 +0000 (18:12 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Jun 2019 17:12:17 +0000 (18:12 +0100)
commitdf8fc5b0eeb3166acc7cb73be379101f6d0b367b
treecd995a1511e4aa4c9ef6d2a488795d5a5b670693
parent3b276133c44d90eed7e0562e8d04763bdbe0d514
fs/afs: use struct_size() in kzalloc()

As Gustavo said in other patches doing the same replace, we can now
use the new struct_size() helper to avoid leaving these open-coded and
prone to type mistake.

Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/dir.c
fs/afs/file.c
fs/afs/write.c