Re: [PATCH v4 4/4] fs: allow to mount beneath top mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 03, 2023 at 01:18:42PM +0200, Christian Brauner wrote:
> +/**
> + * do_lock_mount - lock mount and mountpoint
> + * @path:    target path
> + * @beneath: whether the intention is to mount beneath @path
> + *
> + * Follow the mount stack on @path until the top mount @mnt is found. If
> + * the initial @path->{mnt,dentry} is a mountpoint lookup the first
> + * mount stacked on top of it. Then simply follow @{mnt,mnt->mnt_root}
> + * until nothing is stacked on top of it anymore.
> + *
> + * Acquire the inode_lock() on the top mount's ->mnt_root to protect
> + * against concurrent removal of the new mountpoint from another mount
> + * namespace.
> + *
> + * If @beneath is requested, acquire inode_lock() on @mnt's mountpoint
> + * @mp on @mnt->mnt_parent must be acquired. This protects against a

Redundant use of "acquire" here.




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux