diff mbox series

[02/13] fs: Convert fs_context use of SB_I_ flags to new constants

Message ID 20240807183003.23562-2-jack@suse.cz (mailing list archive)
State New
Headers show
Series fs: generic filesystem shutdown handling | expand

Commit Message

Jan Kara Aug. 7, 2024, 6:29 p.m. UTC
Convert uses of SB_I_ constants in fc->s_iflags to the new bit
constants. No functional changes.

Signed-off-by: Jan Kara <jack@suse.cz>
---
 block/bdev.c        | 2 +-
 fs/aio.c            | 2 +-
 fs/nfs/fs_context.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/block/bdev.c b/block/bdev.c
index c5507b6f63b8..c1ea2aeb93dd 100644
--- a/block/bdev.c
+++ b/block/bdev.c
@@ -373,7 +373,7 @@  static int bd_init_fs_context(struct fs_context *fc)
 	struct pseudo_fs_context *ctx = init_pseudo(fc, BDEVFS_MAGIC);
 	if (!ctx)
 		return -ENOMEM;
-	fc->s_iflags |= SB_I_CGROUPWB;
+	fc->s_iflags |= 1 << _SB_I_CGROUPWB;
 	ctx->ops = &bdev_sops;
 	return 0;
 }
diff --git a/fs/aio.c b/fs/aio.c
index 6066f64967b3..63ce0736c3a3 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -279,7 +279,7 @@  static int aio_init_fs_context(struct fs_context *fc)
 {
 	if (!init_pseudo(fc, AIO_RING_MAGIC))
 		return -ENOMEM;
-	fc->s_iflags |= SB_I_NOEXEC;
+	fc->s_iflags |= 1 << _SB_I_NOEXEC;
 	return 0;
 }
 
diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c
index 6c9f3f6645dd..2fbae7e2b6ce 100644
--- a/fs/nfs/fs_context.c
+++ b/fs/nfs/fs_context.c
@@ -1643,7 +1643,7 @@  static int nfs_init_fs_context(struct fs_context *fc)
 		ctx->xprtsec.cert_serial	= TLS_NO_CERT;
 		ctx->xprtsec.privkey_serial	= TLS_NO_PRIVKEY;
 
-		fc->s_iflags		|= SB_I_STABLE_WRITES;
+		fc->s_iflags		|= 1 << _SB_I_STABLE_WRITES;
 	}
 	fc->fs_private = ctx;
 	fc->ops = &nfs_fs_context_ops;