* The page_cgroup exists and
         * the page has already been accounted.
         */
-       if (pc) {
+       if (unlikely(pc)) {
                VM_BUG_ON(pc->page != page);
                VM_BUG_ON(!pc->mem_cgroup);
                unlock_page_cgroup(page);
        unlock_page_cgroup(page);
 
        pc = kmem_cache_alloc(page_cgroup_cache, gfp_mask);
-       if (pc == NULL)
+       if (unlikely(pc == NULL))
                goto err;
 
        /*
                pc->flags = PAGE_CGROUP_FLAG_ACTIVE;
 
        lock_page_cgroup(page);
-       if (page_get_page_cgroup(page)) {
+       if (unlikely(page_get_page_cgroup(page))) {
                unlock_page_cgroup(page);
                /*
                 * Another charge has been added to this page already.
         */
        lock_page_cgroup(page);
        pc = page_get_page_cgroup(page);
-       if (!pc)
+       if (unlikely(!pc))
                goto unlock;
 
        VM_BUG_ON(pc->page != page);