Commit b97cca3
Darrick J. Wong
xfs: only bother with sync_filesystem during readonly remount
In commit 02b9984, we pushed a sync_filesystem() call from the VFS
into xfs_fs_remount. The only time that we ever need to push dirty file
data or metadata to disk for a remount is if we're remounting the
filesystem read only, so this really could be moved to xfs_remount_ro.
Once we've moved the call site, actually check the return value from
sync_filesystem.
Fixes: 02b9984 ("fs: push sync_filesystem() down to the file system's remount_fs()")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>1 parent cea267c commit b97cca3
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
1752 | 1757 | | |
1753 | 1758 | | |
1754 | 1759 | | |
| |||
1827 | 1832 | | |
1828 | 1833 | | |
1829 | 1834 | | |
1830 | | - | |
1831 | | - | |
1832 | 1835 | | |
1833 | 1836 | | |
1834 | 1837 | | |
| |||
0 commit comments