提交 65e5e83f 编写于 作者: A Artem Bityutskiy 提交者: Al Viro

fs/ufs: remove extra superblock write on unmount

UFS calls 'ufs_write_super()' from 'ufs_put_super()' in order to write the
superblocks to the media. However, it is not needed because VFS calls
'->sync_fs()' before calling '->put_super()' - so by the time we are in
'ufs_write_super()', the superblocks are already synchronized.
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 9d46be29
......@@ -1238,9 +1238,6 @@ static void ufs_put_super(struct super_block *sb)
UFSD("ENTER\n");
if (sb->s_dirt)
ufs_write_super(sb);
if (!(sb->s_flags & MS_RDONLY))
ufs_put_super_internal(sb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册