Skip to content

Commit 8f27829

Browse files
Eric Sandeenbrauner
authored andcommitted
openpromfs: finish conversion to the new mount API
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>
1 parent b01e1a6 commit 8f27829

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/openpromfs/inode.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,18 +355,17 @@ static struct inode *openprom_iget(struct super_block *sb, ino_t ino)
355355
return inode;
356356
}
357357

358-
static int openprom_remount(struct super_block *sb, int *flags, char *data)
358+
static int openpromfs_reconfigure(struct fs_context *fc)
359359
{
360-
sync_filesystem(sb);
361-
*flags |= SB_NOATIME;
360+
sync_filesystem(fc->root->d_sb);
361+
fc->sb_flags |= SB_NOATIME;
362362
return 0;
363363
}
364364

365365
static const struct super_operations openprom_sops = {
366366
.alloc_inode = openprom_alloc_inode,
367367
.free_inode = openprom_free_inode,
368368
.statfs = simple_statfs,
369-
.remount_fs = openprom_remount,
370369
};
371370

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

416415
static const struct fs_context_operations openpromfs_context_ops = {
417416
.get_tree = openpromfs_get_tree,
417+
.reconfigure = openpromfs_reconfigure,
418418
};
419419

420420
static int openpromfs_init_fs_context(struct fs_context *fc)

0 commit comments

Comments
 (0)