mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
mm: swap_cgroup: remove double initialization of locals
Fixes: 6769183166b3 ("mm/swap_cgroup: decouple swap cgroup recording and clearing") Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: Muchun Song <muchun.song@linux.dev> Cc: Chris Li <chrisl@kernel.org> Cc: Kairui Song <kasong@tencent.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Roman Gushchin <roman.gushchin@linux.dev> Cc: Shakeel Butt <shakeel.butt@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
f0e11a997a
commit
d9a04a2615
@ -92,8 +92,7 @@ void swap_cgroup_record(struct folio *folio, unsigned short id,
|
||||
*/
|
||||
unsigned short swap_cgroup_clear(swp_entry_t ent, unsigned int nr_ents)
|
||||
{
|
||||
pgoff_t offset = swp_offset(ent);
|
||||
pgoff_t end = offset + nr_ents;
|
||||
pgoff_t offset, end;
|
||||
struct swap_cgroup *map;
|
||||
unsigned short old, iter = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user