linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the notifications tree with the vfs tree
@ 2020-05-25  9:26 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2020-05-25  9:26 UTC (permalink / raw)
  To: David Howells, Al Viro
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Christoph Hellwig

[-- Attachment #1: Type: text/plain, Size: 1674 bytes --]

Hi all,

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

  include/linux/pipe_fs_i.h

between commit:

  f6dd975583bd ("pipe: merge anon_pipe_buf*_ops")

from the vfs tree and commits:

  8cfba76383e9 ("pipe: Allow buffers to be marked read-whole-or-error for notifications")
  e7d553d69cf6 ("pipe: Add notification lossage handling")

from the notifications tree.

I fixed it up (see below) 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.

-- 
Cheers,
Stephen Rothwell

diff --cc include/linux/pipe_fs_i.h
index 0c31b9461262,6626f511de6f..000000000000
--- a/include/linux/pipe_fs_i.h
+++ b/include/linux/pipe_fs_i.h
@@@ -8,7 -8,10 +8,11 @@@
  #define PIPE_BUF_FLAG_ATOMIC	0x02	/* was atomically mapped */
  #define PIPE_BUF_FLAG_GIFT	0x04	/* page is a gift */
  #define PIPE_BUF_FLAG_PACKET	0x08	/* read() as a packet */
 -#define PIPE_BUF_FLAG_WHOLE	0x10	/* read() must return entire buffer or error */
 +#define PIPE_BUF_FLAG_CAN_MERGE	0x10	/* can merge buffers */
++#define PIPE_BUF_FLAG_WHOLE	0x20	/* read() must return entire buffer or error */
+ #ifdef CONFIG_WATCH_QUEUE
 -#define PIPE_BUF_FLAG_LOSS	0x20	/* Message loss happened after this buffer */
++#define PIPE_BUF_FLAG_LOSS	0x40	/* Message loss happened after this buffer */
+ #endif
  
  /**
   *	struct pipe_buffer - a linux kernel pipe buffer

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-next: manual merge of the notifications tree with the vfs tree
@ 2020-05-15  9:40 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2020-05-15  9:40 UTC (permalink / raw)
  To: David Howells, Al Viro
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Miklos Szeredi

[-- Attachment #1: Type: text/plain, Size: 12353 bytes --]

Hi all,

Today's linux-next merge of the notifications tree got conflicts in:

  arch/alpha/kernel/syscalls/syscall.tbl
  arch/arm/tools/syscall.tbl
  arch/arm64/include/asm/unistd.h
  arch/arm64/include/asm/unistd32.h
  arch/ia64/kernel/syscalls/syscall.tbl
  arch/m68k/kernel/syscalls/syscall.tbl
  arch/microblaze/kernel/syscalls/syscall.tbl
  arch/mips/kernel/syscalls/syscall_n32.tbl
  arch/mips/kernel/syscalls/syscall_n64.tbl
  arch/mips/kernel/syscalls/syscall_o32.tbl
  arch/parisc/kernel/syscalls/syscall.tbl
  arch/powerpc/kernel/syscalls/syscall.tbl
  arch/s390/kernel/syscalls/syscall.tbl
  arch/sh/kernel/syscalls/syscall.tbl
  arch/sparc/kernel/syscalls/syscall.tbl
  arch/x86/entry/syscalls/syscall_32.tbl
  arch/x86/entry/syscalls/syscall_64.tbl
  arch/xtensa/kernel/syscalls/syscall.tbl
  include/uapi/asm-generic/unistd.h

between commit:

  c8ffd8bcdd28 ("vfs: add faccessat2 syscall")

from the vfs tree and commits:

  cd7109637b0b ("watch_queue: Implement mount topology and attribute change notifications")
  46896d79c514 ("watch_queue: Add superblock notifications")

from the notifications tree.

I fixed it up (see below) 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.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/alpha/kernel/syscalls/syscall.tbl
index 5ddd128d4b7a,7c0115af9010..000000000000
--- a/arch/alpha/kernel/syscalls/syscall.tbl
+++ b/arch/alpha/kernel/syscalls/syscall.tbl
@@@ -477,4 -477,5 +477,6 @@@
  # 545 reserved for clone3
  547	common	openat2				sys_openat2
  548	common	pidfd_getfd			sys_pidfd_getfd
 -549	common	watch_mount			sys_watch_mount
 -550	common	watch_sb			sys_watch_sb
 +549	common	faccessat2			sys_faccessat2
++550	common	watch_mount			sys_watch_mount
++551	common	watch_sb			sys_watch_sb
diff --cc arch/arm/tools/syscall.tbl
index d5cae5ffede0,f256f009a89f..000000000000
--- a/arch/arm/tools/syscall.tbl
+++ b/arch/arm/tools/syscall.tbl
@@@ -451,4 -451,5 +451,6 @@@
  435	common	clone3				sys_clone3
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/arm64/include/asm/unistd.h
index 3b859596840d,b3b2019f8d16..000000000000
--- a/arch/arm64/include/asm/unistd.h
+++ b/arch/arm64/include/asm/unistd.h
@@@ -38,7 -38,7 +38,7 @@@
  #define __ARM_NR_compat_set_tls		(__ARM_NR_COMPAT_BASE + 5)
  #define __ARM_NR_COMPAT_END		(__ARM_NR_COMPAT_BASE + 0x800)
  
- #define __NR_compat_syscalls		440
 -#define __NR_compat_syscalls		441
++#define __NR_compat_syscalls		442
  #endif
  
  #define __ARCH_WANT_SYS_CLONE
diff --cc arch/arm64/include/asm/unistd32.h
index 6d95d0c8bf2f,5ba3dae4859b..000000000000
--- a/arch/arm64/include/asm/unistd32.h
+++ b/arch/arm64/include/asm/unistd32.h
@@@ -883,8 -883,10 +883,12 @@@ __SYSCALL(__NR_clone3, sys_clone3
  __SYSCALL(__NR_openat2, sys_openat2)
  #define __NR_pidfd_getfd 438
  __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
 -#define __NR_watch_mount 439
 +#define __NR_faccessat2 439
 +__SYSCALL(__NR_faccessat2, sys_faccessat2)
++#define __NR_watch_mount 440
+ __SYSCALL(__NR_watch_mount, sys_watch_mount)
 -#define __NR_watch_sb 440
++#define __NR_watch_sb 441
+ __SYSCALL(__NR_watch_sb, sys_watch_sb)
  
  /*
   * Please add new compat syscalls above this comment and update
diff --cc arch/ia64/kernel/syscalls/syscall.tbl
index 49e325b604b3,a4dafc659647..000000000000
--- a/arch/ia64/kernel/syscalls/syscall.tbl
+++ b/arch/ia64/kernel/syscalls/syscall.tbl
@@@ -358,4 -358,5 +358,6 @@@
  # 435 reserved for clone3
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/m68k/kernel/syscalls/syscall.tbl
index f71b1bbcc198,893fb4151547..000000000000
--- a/arch/m68k/kernel/syscalls/syscall.tbl
+++ b/arch/m68k/kernel/syscalls/syscall.tbl
@@@ -437,4 -437,5 +437,6 @@@
  435	common	clone3				__sys_clone3
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/microblaze/kernel/syscalls/syscall.tbl
index edacc4561f2b,54aaf0d40c64..000000000000
--- a/arch/microblaze/kernel/syscalls/syscall.tbl
+++ b/arch/microblaze/kernel/syscalls/syscall.tbl
@@@ -443,4 -443,5 +443,6 @@@
  435	common	clone3				sys_clone3
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/mips/kernel/syscalls/syscall_n32.tbl
index f777141f5256,fd34dd0efed0..000000000000
--- a/arch/mips/kernel/syscalls/syscall_n32.tbl
+++ b/arch/mips/kernel/syscalls/syscall_n32.tbl
@@@ -376,4 -376,5 +376,6 @@@
  435	n32	clone3				__sys_clone3
  437	n32	openat2				sys_openat2
  438	n32	pidfd_getfd			sys_pidfd_getfd
 -439	n32	watch_mount			sys_watch_mount
 -440	n32	watch_sb			sys_watch_sb
 +439	n32	faccessat2			sys_faccessat2
++440	n32	watch_mount			sys_watch_mount
++441	n32	watch_sb			sys_watch_sb
diff --cc arch/mips/kernel/syscalls/syscall_n64.tbl
index da8c76394e17,db0f4c0a0a0b..000000000000
--- a/arch/mips/kernel/syscalls/syscall_n64.tbl
+++ b/arch/mips/kernel/syscalls/syscall_n64.tbl
@@@ -352,4 -352,5 +352,6 @@@
  435	n64	clone3				__sys_clone3
  437	n64	openat2				sys_openat2
  438	n64	pidfd_getfd			sys_pidfd_getfd
 -439	n64	watch_mount			sys_watch_mount
 -440	n64	watch_sb			sys_watch_sb
 +439	n64	faccessat2			sys_faccessat2
++440	n64	watch_mount			sys_watch_mount
++441	n64	watch_sb			sys_watch_sb
diff --cc arch/mips/kernel/syscalls/syscall_o32.tbl
index 13280625d312,ce2e1326de8f..000000000000
--- a/arch/mips/kernel/syscalls/syscall_o32.tbl
+++ b/arch/mips/kernel/syscalls/syscall_o32.tbl
@@@ -425,4 -425,5 +425,6 @@@
  435	o32	clone3				__sys_clone3
  437	o32	openat2				sys_openat2
  438	o32	pidfd_getfd			sys_pidfd_getfd
 -439	o32	watch_mount			sys_watch_mount
 -440	o32	watch_sb			sys_watch_sb
 +439	o32	faccessat2			sys_faccessat2
++440	o32	watch_mount			sys_watch_mount
++441	o32	watch_sb			sys_watch_sb
diff --cc arch/parisc/kernel/syscalls/syscall.tbl
index 5a758fa6ec52,6e4a7c08b64b..000000000000
--- a/arch/parisc/kernel/syscalls/syscall.tbl
+++ b/arch/parisc/kernel/syscalls/syscall.tbl
@@@ -435,4 -435,5 +435,6 @@@
  435	common	clone3				sys_clone3_wrapper
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/powerpc/kernel/syscalls/syscall.tbl
index f833a3190822,d3caa8704db1..000000000000
--- a/arch/powerpc/kernel/syscalls/syscall.tbl
+++ b/arch/powerpc/kernel/syscalls/syscall.tbl
@@@ -527,4 -527,5 +527,6 @@@
  435	spu	clone3				sys_ni_syscall
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/s390/kernel/syscalls/syscall.tbl
index bfdcb7633957,b3b8529d2b74..000000000000
--- a/arch/s390/kernel/syscalls/syscall.tbl
+++ b/arch/s390/kernel/syscalls/syscall.tbl
@@@ -440,4 -440,5 +440,6 @@@
  435  common	clone3			sys_clone3			sys_clone3
  437  common	openat2			sys_openat2			sys_openat2
  438  common	pidfd_getfd		sys_pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount		sys_watch_mount			sys_watch_mount
 -440	common	watch_sb		sys_watch_sb			sys_watch_sb
 +439  common	faccessat2		sys_faccessat2			sys_faccessat2
++440	common	watch_mount		sys_watch_mount			sys_watch_mount
++441	common	watch_sb		sys_watch_sb			sys_watch_sb
diff --cc arch/sh/kernel/syscalls/syscall.tbl
index acc35daa1b79,89307a20657c..000000000000
--- a/arch/sh/kernel/syscalls/syscall.tbl
+++ b/arch/sh/kernel/syscalls/syscall.tbl
@@@ -440,4 -440,5 +440,6 @@@
  # 435 reserved for clone3
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/sparc/kernel/syscalls/syscall.tbl
index 8004a276cb74,4ff841a00450..000000000000
--- a/arch/sparc/kernel/syscalls/syscall.tbl
+++ b/arch/sparc/kernel/syscalls/syscall.tbl
@@@ -483,4 -483,5 +483,6 @@@
  # 435 reserved for clone3
  437	common	openat2			sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc arch/x86/entry/syscalls/syscall_32.tbl
index d8f8a1a69ed1,b26a6f5a7680..000000000000
--- a/arch/x86/entry/syscalls/syscall_32.tbl
+++ b/arch/x86/entry/syscalls/syscall_32.tbl
@@@ -442,4 -442,5 +442,6 @@@
  435	i386	clone3			sys_clone3
  437	i386	openat2			sys_openat2
  438	i386	pidfd_getfd		sys_pidfd_getfd
 -439	i386	watch_mount		sys_watch_mount
 -440	i386	watch_sb		sys_watch_sb
 +439	i386	faccessat2		sys_faccessat2
++440	i386	watch_mount		sys_watch_mount
++441	i386	watch_sb		sys_watch_sb
diff --cc arch/x86/entry/syscalls/syscall_64.tbl
index 78847b32e137,4c4f0b709ee2..000000000000
--- a/arch/x86/entry/syscalls/syscall_64.tbl
+++ b/arch/x86/entry/syscalls/syscall_64.tbl
@@@ -359,7 -359,8 +359,9 @@@
  435	common	clone3			sys_clone3
  437	common	openat2			sys_openat2
  438	common	pidfd_getfd		sys_pidfd_getfd
 -439	common	watch_mount		sys_watch_mount
 -440	common	watch_sb		sys_watch_sb
 +439	common	faccessat2		sys_faccessat2
++440	common	watch_mount		sys_watch_mount
++441	common	watch_sb		sys_watch_sb
  
  #
  # x32-specific system call numbers start at 512 to avoid cache impact
diff --cc arch/xtensa/kernel/syscalls/syscall.tbl
index 69d0d73876b3,8e7d731ed6cf..000000000000
--- a/arch/xtensa/kernel/syscalls/syscall.tbl
+++ b/arch/xtensa/kernel/syscalls/syscall.tbl
@@@ -408,4 -408,5 +408,6 @@@
  435	common	clone3				sys_clone3
  437	common	openat2				sys_openat2
  438	common	pidfd_getfd			sys_pidfd_getfd
 -439	common	watch_mount			sys_watch_mount
 -440	common	watch_sb			sys_watch_sb
 +439	common	faccessat2			sys_faccessat2
++440	common	watch_mount			sys_watch_mount
++441	common	watch_sb			sys_watch_sb
diff --cc include/uapi/asm-generic/unistd.h
index f4a01305d9a6,5bff318b7ffa..000000000000
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@@ -855,11 -855,13 +855,15 @@@ __SYSCALL(__NR_clone3, sys_clone3
  __SYSCALL(__NR_openat2, sys_openat2)
  #define __NR_pidfd_getfd 438
  __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
 -#define __NR_watch_mount 439
 +#define __NR_faccessat2 439
 +__SYSCALL(__NR_faccessat2, sys_faccessat2)
++#define __NR_watch_mount 440
+ __SYSCALL(__NR_watch_mount, sys_watch_mount)
 -#define __NR_watch_sb 440
++#define __NR_watch_sb 441
+ __SYSCALL(__NR_watch_sb, sys_watch_sb)
  
  #undef __NR_syscalls
- #define __NR_syscalls 440
 -#define __NR_syscalls 441
++#define __NR_syscalls 442
  
  /*
   * 32 bit systems traditionally used different

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-next: manual merge of the notifications tree with the vfs tree
@ 2020-05-15  9:25 Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2020-05-15  9:25 UTC (permalink / raw)
  To: David Howells, Al Viro
  Cc: Linux Next Mailing List, Linux Kernel Mailing List, Miklos Szeredi

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]

Hi all,

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

  fs/mount.h

between commit:

  9f6c61f96f2d ("proc/mounts: add cursor")

from the vfs tree and commit:

  cd7109637b0b ("watch_queue: Implement mount topology and attribute change notifications")

from the notifications tree.

I fixed it up (see below) 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.

-- 
Cheers,
Stephen Rothwell

diff --cc fs/mount.h
index c7abb7b394d8,9a49ea1e7365..000000000000
--- a/fs/mount.h
+++ b/fs/mount.h
@@@ -158,4 -161,16 +165,18 @@@ static inline bool is_anon_ns(struct mn
  	return ns->seq == 0;
  }
  
 +extern void mnt_cursor_del(struct mnt_namespace *ns, struct mount *cursor);
++
+ #ifdef CONFIG_MOUNT_NOTIFICATIONS
+ extern void notify_mount(struct mount *triggered,
+ 			 struct mount *aux,
+ 			 enum mount_notification_subtype subtype,
+ 			 u32 info_flags);
+ #else
+ static inline void notify_mount(struct mount *triggered,
+ 				struct mount *aux,
+ 				enum mount_notification_subtype subtype,
+ 				u32 info_flags)
+ {
+ }
+ #endif

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-25  9:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25  9:26 linux-next: manual merge of the notifications tree with the vfs tree Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2020-05-15  9:40 Stephen Rothwell
2020-05-15  9:25 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).