File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -536,10 +536,6 @@ static struct zpool *zswap_find_zpool(struct zswap_entry *entry)
536
536
*/
537
537
static void zswap_free_entry (struct zswap_entry * entry )
538
538
{
539
- if (entry -> objcg ) {
540
- obj_cgroup_uncharge_zswap (entry -> objcg , entry -> length );
541
- obj_cgroup_put (entry -> objcg );
542
- }
543
539
if (!entry -> length )
544
540
atomic_dec (& zswap_same_filled_pages );
545
541
else {
@@ -548,6 +544,10 @@ static void zswap_free_entry(struct zswap_entry *entry)
548
544
atomic_dec (& entry -> pool -> nr_stored );
549
545
zswap_pool_put (entry -> pool );
550
546
}
547
+ if (entry -> objcg ) {
548
+ obj_cgroup_uncharge_zswap (entry -> objcg , entry -> length );
549
+ obj_cgroup_put (entry -> objcg );
550
+ }
551
551
zswap_entry_cache_free (entry );
552
552
atomic_dec (& zswap_stored_pages );
553
553
zswap_update_total_size ();
You can’t perform that action at this time.
0 commit comments