exfat: add remount_fs operation for 5.4 kernel

The remount_fs operations should be defined for
kernel 5.4, because fs_context is not provided
for the 5.4 kernel and the operation will be
called when exfat is remounted.

This fixes xfstests generic/452 failure.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
This commit is contained in:
Hyunchul Lee 2021-01-12 10:49:36 +09:00 committed by Namjae Jeon
parent 898b0ec688
commit 1b618f4cbe

View File

@ -224,7 +224,9 @@ static void exfat_destroy_inode(struct inode *inode)
{
call_rcu(&inode->i_rcu, exfat_i_callback);
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
static int exfat_remount(struct super_block *sb, int *flags, char *data)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
@ -244,6 +246,8 @@ static const struct super_operations exfat_sops = {
.free_inode = exfat_free_inode,
#else
.destroy_inode = exfat_destroy_inode,
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
.remount_fs = exfat_remount,
#endif
.write_inode = exfat_write_inode,