Which of the following definitions best describes gastritis?