linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the vfs-brauner tree with Linus' tree
@ 2023-12-03 23:35 Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2023-12-03 23:35 UTC (permalink / raw)
  To: Christian Brauner
  Cc: Christoph Hellwig, Jan Kara, Jens Axboe,
	Linux Kernel Mailing List, Linux Next Mailing List, Yu Kuai

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

Hi all,

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

  include/linux/blk_types.h

between commit:

  67d995e06953 ("block: warn once for each partition in bio_check_ro()")

from Linus' tree and commit:

  ed5cc702d311 ("block: Add config option to not allow writing to mounted devices")

from the vfs-brauner 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/blk_types.h
index b29ebd53417d,52e264d5a830..000000000000
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@@ -70,7 -66,7 +67,8 @@@ struct block_device 
  #ifdef CONFIG_FAIL_MAKE_REQUEST
  	bool			bd_make_it_fail;
  #endif
 +	bool			bd_ro_warned;
+ 	int			bd_writers;
  	/*
  	 * keep this out-of-line as it's both big and not needed in the fast
  	 * path

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

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

* linux-next: manual merge of the vfs-brauner tree with Linus' tree
@ 2024-05-05 23:52 Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2024-05-05 23:52 UTC (permalink / raw)
  To: Christian Brauner
  Cc: David Howells, Eric Sandeen, Linux Kernel Mailing List,
	Linux Next Mailing List, Steven Rostedt (Google)

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

Hi all,

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

  fs/tracefs/inode.c

between commit:

  baa23a8d4360 ("tracefs: Reset permissions on remount if permissions are options")

from Linus' tree and commit:

  78ff64081949 ("vfs: Convert tracefs to use the new mount API")

from the vfs-brauner 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/tracefs/inode.c
index 417c840e6403,abd0b477e287..000000000000
--- a/fs/tracefs/inode.c
+++ b/fs/tracefs/inode.c
@@@ -362,9 -295,6 +345,8 @@@ static int tracefs_apply_options(struc
  {
  	struct tracefs_fs_info *fsi = sb->s_fs_info;
  	struct inode *inode = d_inode(sb->s_root);
- 	struct tracefs_mount_opts *opts = &fsi->mount_opts;
 +	struct tracefs_inode *ti;
 +	bool update_uid, update_gid;
  	umode_t tmp_mode;
  
  	/*
@@@ -378,31 -308,12 +360,31 @@@
  		WRITE_ONCE(inode->i_mode, tmp_mode);
  	}
  
- 	if (!remount || opts->opts & BIT(Opt_uid))
- 		inode->i_uid = opts->uid;
+ 	if (!remount || fsi->opts & BIT(Opt_uid))
+ 		inode->i_uid = fsi->uid;
  
- 	if (!remount || opts->opts & BIT(Opt_gid))
- 		inode->i_gid = opts->gid;
+ 	if (!remount || fsi->opts & BIT(Opt_gid))
+ 		inode->i_gid = fsi->gid;
  
- 	if (remount && (opts->opts & BIT(Opt_uid) || opts->opts & BIT(Opt_gid))) {
++	if (remount && (fsi->opts & BIT(Opt_uid) || fsi->opts & BIT(Opt_gid))) {
 +
- 		update_uid = opts->opts & BIT(Opt_uid);
- 		update_gid = opts->opts & BIT(Opt_gid);
++		update_uid = fsi->opts & BIT(Opt_uid);
++		update_gid = fsi->opts & BIT(Opt_gid);
 +
 +		rcu_read_lock();
 +		list_for_each_entry_rcu(ti, &tracefs_inodes, list) {
 +			if (update_uid)
 +				ti->flags &= ~TRACEFS_UID_PERM_SET;
 +
 +			if (update_gid)
 +				ti->flags &= ~TRACEFS_GID_PERM_SET;
 +
 +			if (ti->flags & TRACEFS_EVENT_INODE)
 +				eventfs_remount(ti, update_uid, update_gid);
 +		}
 +		rcu_read_unlock();
 +	}
 +
  	return 0;
  }
  

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

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

end of thread, other threads:[~2024-05-05 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-03 23:35 linux-next: manual merge of the vfs-brauner tree with Linus' tree Stephen Rothwell
2024-05-05 23:52 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).