Merge "f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read"

This commit is contained in:
Linux Build Service Account 2018-04-12 18:21:48 -07:00 committed by Gerrit - the friendly Code Review server
commit 6230ae3c42

View file

@ -1457,7 +1457,7 @@ static ssize_t f2fs_quota_read(struct super_block *sb, int type, char *data,
while (toread > 0) {
tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread);
repeat:
page = read_mapping_page(mapping, blkidx, NULL);
page = read_cache_page_gfp(mapping, blkidx, GFP_NOFS);
if (IS_ERR(page)) {
if (PTR_ERR(page) == -ENOMEM) {
congestion_wait(BLK_RW_ASYNC, HZ/50);