Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a786c420 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm/page-writeback.c: fix divide by zero in bdi_dirty_limits()"

parents c50db428 4f2ff4fc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1327,9 +1327,9 @@ static inline void bdi_dirty_limits(struct backing_dev_info *bdi,
	*bdi_thresh = bdi_dirty_limit(bdi, dirty_thresh);

	if (bdi_bg_thresh)
		*bdi_bg_thresh = div_u64((u64)*bdi_thresh *
		*bdi_bg_thresh = dirty_thresh ? div_u64((u64)*bdi_thresh *
							background_thresh,
					 dirty_thresh);
							dirty_thresh) : 0;

	/*
	 * In order to avoid the stacked BDI deadlock we need