Skip to content

Commit

Permalink
openpromfs: finish conversion to the new mount API
Browse files Browse the repository at this point in the history
The original mount API conversion inexplicably left out the change
from ->remount_fs to ->reconfigure; do that now.

Fixes: 7ab2fa7 ("vfs: Convert openpromfs to use the new mount API")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Link: https://lore.kernel.org/r/90b968aa-c979-420f-ba37-5acc3391b28f@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
  • Loading branch information
Eric Sandeen authored and Christian Brauner committed Mar 26, 2024
1 parent b01e1a6 commit 8f27829
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/openpromfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,18 +355,17 @@ static struct inode *openprom_iget(struct super_block *sb, ino_t ino)
return inode;
}

static int openprom_remount(struct super_block *sb, int *flags, char *data)
static int openpromfs_reconfigure(struct fs_context *fc)
{
sync_filesystem(sb);
*flags |= SB_NOATIME;
sync_filesystem(fc->root->d_sb);
fc->sb_flags |= SB_NOATIME;
return 0;
}

static const struct super_operations openprom_sops = {
.alloc_inode = openprom_alloc_inode,
.free_inode = openprom_free_inode,
.statfs = simple_statfs,
.remount_fs = openprom_remount,
};

static int openprom_fill_super(struct super_block *s, struct fs_context *fc)
Expand Down Expand Up @@ -415,6 +414,7 @@ static int openpromfs_get_tree(struct fs_context *fc)

static const struct fs_context_operations openpromfs_context_ops = {
.get_tree = openpromfs_get_tree,
.reconfigure = openpromfs_reconfigure,
};

static int openpromfs_init_fs_context(struct fs_context *fc)
Expand Down

0 comments on commit 8f27829

Please sign in to comment.