aboutsummaryrefslogtreecommitdiff
path: root/fs/ubifs/tnc.c
diff options
context:
space:
mode:
authorGravatar Sascha Hauer <s.hauer@pengutronix.de> 2018-09-07 14:36:23 +0200
committerGravatar Richard Weinberger <richard@nod.at> 2018-10-23 13:48:06 +0200
commitc4de6d7e4319ffb52d6db3138057712749540191 (patch)
tree24ece70ae4e0bd90695783a09e36a57017091fd1 /fs/ubifs/tnc.c
parentubi: Mark expected switch fall-throughs (diff)
downloadlinux-c4de6d7e4319ffb52d6db3138057712749540191.tar.gz
linux-c4de6d7e4319ffb52d6db3138057712749540191.tar.bz2
linux-c4de6d7e4319ffb52d6db3138057712749540191.zip
ubifs: Refactor create_default_filesystem()
create_default_filesystem() allocates memory for a node, writes that node and frees the memory directly afterwards. With this patch we allocate memory for all nodes at the beginning of the function and free the memory at the end. This makes it easier to implement authentication support since with authentication support we'll need the contents of some nodes when creating other nodes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/tnc.c')
0 files changed, 0 insertions, 0 deletions