Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'xfs-6.8-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull xfs fix from Chandan Babu:

- Fix read only mounts when using fsopen mount API

* tag 'xfs-6.8-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
xfs: read only mounts with fsopen mount API are busted

+17 -10
+17 -10
fs/xfs/xfs_super.c
··· 1496 1496 1497 1497 mp->m_super = sb; 1498 1498 1499 + /* 1500 + * Copy VFS mount flags from the context now that all parameter parsing 1501 + * is guaranteed to have been completed by either the old mount API or 1502 + * the newer fsopen/fsconfig API. 1503 + */ 1504 + if (fc->sb_flags & SB_RDONLY) 1505 + set_bit(XFS_OPSTATE_READONLY, &mp->m_opstate); 1506 + if (fc->sb_flags & SB_DIRSYNC) 1507 + mp->m_features |= XFS_FEAT_DIRSYNC; 1508 + if (fc->sb_flags & SB_SYNCHRONOUS) 1509 + mp->m_features |= XFS_FEAT_WSYNC; 1510 + 1499 1511 error = xfs_fs_validate_params(mp); 1500 1512 if (error) 1501 1513 return error; ··· 1977 1965 .free = xfs_fs_free, 1978 1966 }; 1979 1967 1968 + /* 1969 + * WARNING: do not initialise any parameters in this function that depend on 1970 + * mount option parsing having already been performed as this can be called from 1971 + * fsopen() before any parameters have been set. 1972 + */ 1980 1973 static int xfs_init_fs_context( 1981 1974 struct fs_context *fc) 1982 1975 { ··· 2012 1995 mp->m_logbufs = -1; 2013 1996 mp->m_logbsize = -1; 2014 1997 mp->m_allocsize_log = 16; /* 64k */ 2015 - 2016 - /* 2017 - * Copy binary VFS mount flags we are interested in. 2018 - */ 2019 - if (fc->sb_flags & SB_RDONLY) 2020 - set_bit(XFS_OPSTATE_READONLY, &mp->m_opstate); 2021 - if (fc->sb_flags & SB_DIRSYNC) 2022 - mp->m_features |= XFS_FEAT_DIRSYNC; 2023 - if (fc->sb_flags & SB_SYNCHRONOUS) 2024 - mp->m_features |= XFS_FEAT_WSYNC; 2025 1998 2026 1999 fc->s_fs_info = mp; 2027 2000 fc->ops = &xfs_context_ops;