Skip to content

Commit

Permalink
Btrfs: do not warn_on io_ctl->cur in io_ctl_map_page
Browse files Browse the repository at this point in the history
io_ctl_map_page is called by many functions in free-space-cache.
In most scenarios, the ->cur is not null, e.g. io_ctl_add_entry.
I think we'd better remove the warn_on here.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
  • Loading branch information
Wang Sheng-Hui authored and Chris Mason committed Dec 17, 2012
1 parent 3f6bcfb commit 0714012
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ static void io_ctl_unmap_page(struct io_ctl *io_ctl)

static void io_ctl_map_page(struct io_ctl *io_ctl, int clear)
{
WARN_ON(io_ctl->cur);
BUG_ON(io_ctl->index >= io_ctl->num_pages);
io_ctl->page = io_ctl->pages[io_ctl->index++];
io_ctl->cur = kmap(io_ctl->page);
Expand Down

0 comments on commit 0714012

Please sign in to comment.