Re: [PATCH 20/32] vfs: Make close() unmount the attached mount if so flagged [ver #8]

From: Al Viro
Date: Fri Jun 01 2018 - 01:16:34 EST


On Fri, Jun 01, 2018 at 04:18:29AM +0100, Al Viro wrote:

> +void umount_on_fput(struct vfsmount *mnt)
> {

.... which needs to do mntput() in case if it's attached.