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

Commit fd36cde0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "f2fs: fix is_idle() check for discard type"

parents fe146bf6 b9996e79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2161,7 +2161,7 @@ static inline bool is_idle(struct f2fs_sb_info *sbi, int type)
		get_pages(sbi, F2FS_DIO_WRITE))
		return false;

	if (SM_I(sbi) && SM_I(sbi)->dcc_info &&
	if (type != DISCARD_TIME && SM_I(sbi) && SM_I(sbi)->dcc_info &&
			atomic_read(&SM_I(sbi)->dcc_info->queued_discard))
		return false;