summaryrefslogtreecommitdiffstats
path: root/fs/fuse
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-09-07 14:36:23 +0200
committerRichard Weinberger <richard@nod.at>2018-10-23 13:48:06 +0200
commitc4de6d7e4319ffb52d6db3138057712749540191 (patch)
tree24ece70ae4e0bd90695783a09e36a57017091fd1 /fs/fuse
parent7e5583fd77194b45eef04835576a4fe7f3f235c8 (diff)
downloadlinux-stable-c4de6d7e4319ffb52d6db3138057712749540191.tar.gz
linux-stable-c4de6d7e4319ffb52d6db3138057712749540191.tar.bz2
linux-stable-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/fuse')
0 files changed, 0 insertions, 0 deletions