Acute gastritis is a sudden inflammation or swelling in the lining of the stomach. Gastritis only directly affects the stomach, while gastroenteritis affects both the stomach and the intestines. The most common causes of acute gastritis are nonsteroidal anti-inflammatory drugs (NSAIDs) and corticosteroids.