]> git.baikalelectronics.ru Git - kernel.git/commit
fs: add filp_clone_open API
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 18 Feb 2016 00:49:38 +0000 (16:49 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 30 Mar 2016 21:12:22 +0000 (14:12 -0700)
commit937bdc29cdaf6c7c4107ada335ee51f63562c4fc
treed8b850a2330ab9f98c5a1c00fe54ac741e6e6c82
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
fs: add filp_clone_open API

I need an API that allows me to obtain a clone of the current file
pointer to pass in to an exec handler.  I've labelled this as an
internal API because I can't see how it would be useful outside of the
fs subsystem.  The use case will be a persistent binfmt_misc handler.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Acked-by: Jan Kara <jack@suse.cz>
fs/internal.h
fs/open.c