summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-06-08 13:02:45 +0200
committerJens Axboe <axboe@kernel.dk>2023-06-12 16:04:04 +0200
commit81b1fb7d17c0110df839e13468ada9e99bb6e5f4 (patch)
tree8f85bf5fb63b27fec2ac913b69126d6edbdcfa89 /fs/nilfs2
parentblock: add a sb_open_mode helper (diff)
downloadlinux-81b1fb7d17c0110df839e13468ada9e99bb6e5f4.tar.xz
linux-81b1fb7d17c0110df839e13468ada9e99bb6e5f4.zip
fs: remove sb->s_mode
There is no real need to store the open mode in the super_block now. It is only used by f2fs, which can easily recalculate it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Acked-by: Christian Brauner <brauner@kernel.org> Link: https://lore.kernel.org/r/20230608110258.189493-18-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r--fs/nilfs2/super.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index a41fd84d4e28..15a5a1099427 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -1316,7 +1316,6 @@ nilfs_mount(struct file_system_type *fs_type, int flags,
s_new = true;
/* New superblock instance created */
- s->s_mode = mode;
snprintf(s->s_id, sizeof(s->s_id), "%pg", sd.bdev);
sb_set_blocksize(s, block_size(sd.bdev));