aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorAlexey Brodkin <[email protected]>2018-06-28 23:59:14 +0000
committerVineet Gupta <[email protected]>2018-07-09 18:31:49 +0000
commit6e3761145a9ba3ce267c330b6bff51cf6a057b06 (patch)
tree8c65602aafac08518ca3cc0e8153cfb8db74cbd6 /net/tipc/node.c
parentARC: [arcompact] entry.S: minor code movement (diff)
downloadkernel-6e3761145a9ba3ce267c330b6bff51cf6a057b06.tar.gz
kernel-6e3761145a9ba3ce267c330b6bff51cf6a057b06.zip
ARC: Fix CONFIG_SWAP
swap was broken on ARC due to silly copy-paste issue. We encode offset from swapcache page in __swp_entry() as (off << 13) but were not decoding back in __swp_offset() as (off >> 13) - it was still (off << 13). This finally fixes swap usage on ARC. | # mkswap /dev/sda2 | | # swapon -a -e /dev/sda2 | Adding 500728k swap on /dev/sda2. Priority:-2 extents:1 across:500728k | | # free | total used free shared buffers cached | Mem: 765104 13456 751648 4736 8 4736 | -/+ buffers/cache: 8712 756392 | Swap: 500728 0 500728 Cc: [email protected] Signed-off-by: Alexey Brodkin <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions