Skip to contentSkip to conversation

linux-next: manual merge of the vfs tree with the overlayfs tree

PATCH Stephen Rothwell 3 participants 3 messages Jun 19, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Al,

Today's linux-next merge of the vfs tree got a conflict in:

include/uapi/linux/fs.h

between commit:

1d91ca426d8d ("Partially revert "locks: fix file locking on overlayfs"")

from the overlayfs tree and commit:

28514d1edad4 ("vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled")

from the vfs tree.

I fixed it up (I used the vfs tree version of the file and added the following merge fix patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Tue, 19 Jun 2018 11:16:12 +1000
Subject: [PATCH] overlayfs: fix up for MS_ constants moving

---
 include/uapi/linux/mount.h | 1 -
 1 file changed, 1 deletion(-)
include/uapi/linux/mount.h +0 -1
index 3634e065836c..fb104836a51f 100644
@@ -37,7 +37,6 @@
 
 /* These sb flags are internal to the kernel */
 #define MS_SUBMOUNT     (1<<26)
-#define MS_NOREMOTELOCK	(1<<27)
 #define MS_NOSEC	(1<<28)
 #define MS_BORN		(1<<29)
 #define MS_ACTIVE	(1<<30)
Signature · 5 lines
2.17.1

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 6 lines · Stephen Rothwell

/* These sb flags are internal to the kernel */
#define MS_SUBMOUNT (1<<26)
-#define MS_NOREMOTELOCK (1<<27)
#define MS_NOSEC (1<<28)
#define MS_BORN (1<<29)
#define MS_ACTIVE (1<<30)

Ummm... Can MS_NOREMOTELOCK be removed? I know it's listed in the internal flags section, but all of these have been exposed to userspace for over a year. Ideally, I'd remove all of these from UAPI, but can anyone guarantee that no pieces of userspace refer to them?

David

#2 lore raw
Quoted 9 lines · David Howells
Quoted 6 lines · Stephen Rothwell

/* These sb flags are internal to the kernel */
#define MS_SUBMOUNT (1<<26)
-#define MS_NOREMOTELOCK (1<<27)
#define MS_NOSEC (1<<28)
#define MS_BORN (1<<29)
#define MS_ACTIVE (1<<30)

Quoted 4 lines

Ummm... Can MS_NOREMOTELOCK be removed? I know it's listed in the internal flags section, but all of these have been exposed to userspace for over a year. Ideally, I'd remove all of these from UAPI, but can anyone guarantee that no pieces of userspace refer to them?

The number of potential users of these flags is pretty low, so I think we can try and remove them and hope nothing breaks.

Probably best left after the dust settles.

Thanks,
Miklos