]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs/proc/task_mmu: remove conversion of seq_file position to unsigned
authorSuren Baghdasaryan <surenb@google.com>
Fri, 4 Jul 2025 06:07:24 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 9 Jul 2025 15:10:29 +0000 (11:10 -0400)
commit2cfa0e086f1da43642b35f3b543077fc7bd60281
treeae522ac297d1d30ae4c4608fa1a38f78ef1688bd
parent21c8e3de9d0e84e950ea9481cc6cea1af79d92a9
fs/proc/task_mmu: remove conversion of seq_file position to unsigned

Back in 2.6 era, last_addr used to be stored in seq_file->version
variable, which was unsigned long. As a result, sentinels to represent
gate vma and end of all vmas used unsigned values. In more recent
kernels we don't used seq_file->version anymore and therefore conversion
from loff_t into unsigned type is not needed. Similarly, sentinel values
don't need to be unsigned. Remove type conversion for set_file position
and change sentinel values to signed.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
fs/proc/task_mmu.c