What is the proper way to close file received by file_open_root?

From: Tamir Carmeli <hidden>
Date: 2018-11-04 19:23:13

Hi,
I see in elixir
<https://elixir.bootlin.com/linux/v4.19.1/ident/file_open_root> that there
4 calls in the kernel. In two of them fput is used for cleanup, and in
coredump.c filp_close is used.
The function has no documentation and no information resides in the
kernel's Documentation directory.

What is the correct way to cleanup the file?

Thanks,
Tamir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20181104/73d1db89/attachment.html>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help