Given a Banach function space X over a nonatomic probability space, we define, in a natural way, a quasi-Banach function space which is denoted by w-X . In this paper, we consider some inequalities in w-X involving the mean oscillation and the maximal function of a martingale. The main results give necessary and sufficient conditions for the inequalities to be valid.