quota: Cleanup list iteration in dqcache_shrink_scan()
authorJan Kara <jack@suse.cz>
Mon, 11 Jun 2018 10:14:45 +0000 (12:14 +0200)
committerJan Kara <jack@suse.cz>
Wed, 20 Jun 2018 09:04:26 +0000 (11:04 +0200)
commit1822193b5d4fd5d9800e6a7ed141375b8e8e68eb
treeaa47e9c9c33903f9037a8ff24a547e95632414b2
parent9560ba306df3e46b4b1037d101e2e4ca68610f55
quota: Cleanup list iteration in dqcache_shrink_scan()

Use list_first_entry() and list_empty() instead of opencoded variants.

Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c