/* Force the running and committing transactions to commit, and wait on the commit.  */
int ext4_force_commit(struct super_block *sb)
/* Force the running and committing transactions to commit, and wait on the commit.  */
int ext4_force_commit(struct super_block *sb)
{
	journal_t *journal;
	int ret = 0;
	if (sb->s_flags & MS_RDONLY)
		return 0;
	journal = EXT4_SB(sb)->s_journal;
	if (journal)
		ret = ext4_journal_force_commit(journal);
	return ret;
}