]> git.baikalelectronics.ru Git - kernel.git/commit
VFS: Clean up shared mount flag propagation
authorValerie Aurora <vaurora@redhat.com>
Tue, 26 Jan 2010 19:20:47 +0000 (14:20 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 3 Mar 2010 19:07:55 +0000 (14:07 -0500)
commita4eeba58538b8071de45ce89fda8998fe2daa04e
tree375a2ea9803a91c5df34df80d7e08119d9772240
parent7dfb86e5a1e1a718577fdde265aa8fcf18f7701a
VFS: Clean up shared mount flag propagation

The handling of mount flags in set_mnt_shared() got a little tangled
up during previous cleanups, with the following problems:

* MNT_PNODE_MASK is defined as a literal constant when it should be a
bitwise xor of other MNT_* flags
* set_mnt_shared() clears and then sets MNT_SHARED (part of MNT_PNODE_MASK)
* MNT_PNODE_MASK could use a comment in mount.h
* MNT_PNODE_MASK is a terrible name, change to MNT_SHARED_MASK

This patch fixes these problems.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
fs/pnode.h
include/linux/mount.h