Skip to content

Commit

Permalink
dm writecache: remove unused gfp_t argument from wc_add_block()
Browse files Browse the repository at this point in the history
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Mikulas Patocka authored and Mike Snitzer committed Jun 14, 2021
1 parent f34ee1d commit 620cbe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/md/dm-writecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ static int writecache_endio_thread(void *data)
return 0;
}

static bool wc_add_block(struct writeback_struct *wb, struct wc_entry *e, gfp_t gfp)
static bool wc_add_block(struct writeback_struct *wb, struct wc_entry *e)
{
struct dm_writecache *wc = wb->wc;
unsigned block_size = wc->block_size;
Expand Down Expand Up @@ -1725,7 +1725,7 @@ static void __writecache_writeback_pmem(struct dm_writecache *wc, struct writeba
max_pages = WB_LIST_INLINE;
}

BUG_ON(!wc_add_block(wb, e, GFP_NOIO));
BUG_ON(!wc_add_block(wb, e));

wb->wc_list[0] = e;
wb->wc_list_n = 1;
Expand All @@ -1735,7 +1735,7 @@ static void __writecache_writeback_pmem(struct dm_writecache *wc, struct writeba
if (read_original_sector(wc, f) !=
read_original_sector(wc, e) + (wc->block_size >> SECTOR_SHIFT))
break;
if (!wc_add_block(wb, f, GFP_NOWAIT | __GFP_NOWARN))
if (!wc_add_block(wb, f))
break;
wbl->size--;
list_del(&f->lru);
Expand Down

0 comments on commit 620cbe4

Please sign in to comment.