/* The only special thing we need to do here is to make sure that all journal_end calls result in the superblock being marked dirty, so that sync() will call the filesystem's write_super callback if appropriate.  */
handle_t* ext3_journal_start_sb(struct super_block *sb, int nblocks)
/* The only special thing we need to do here is to make sure that all journal_end calls result in the superblock being marked dirty, so that sync() will call the filesystem's write_super callback if appropriate.  */
handle_t* ext3_journal_start_sb(struct super_block *sb, int nblocks)
{
	journal_t *journal;
	if (sb->s_flags & MS_RDONLY)
		return ERR_PTR(-EROFS);
	journal = EXT3_SB(sb)->s_journal;
	if (is_journal_aborted(journal)) {
		ext3_abort(sb, __func__,
			   "Detected aborted journal");
		return ERR_PTR(-EROFS);
	}
	return journal_start(journal, nblocks);
}