* + mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2.patch added to -mm tree
@ 2021-04-22 23:03 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-04-22 23:03 UTC (permalink / raw)
To: dchinner, hannes, hch, hughd, jack, kirill.shutemov, mm-commits,
william.kucharski, willy, yang.shi
The patch titled
Subject: mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2
has been added to the -mm tree. Its filename is
mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Hugh Dickins <hughd@google.com>
Subject: mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2
remove unneeded u64 casts
Link: https://lkml.kernel.org/r/alpine.LSU.2.11.2104221347240.1170@eggly.anvils
Fixes: 41139aa4c3a3 ("mm/filemap: add mapping_seek_hole_data")
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dave Chinner <dchinner@redhat.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: William Kucharski <william.kucharski@oracle.com>
Cc: Yang Shi <yang.shi@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/filemap.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/mm/filemap.c~mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2
+++ a/mm/filemap.c
@@ -2677,8 +2677,8 @@ unsigned int seek_page_size(struct xa_st
loff_t mapping_seek_hole_data(struct address_space *mapping, loff_t start,
loff_t end, int whence)
{
- XA_STATE(xas, &mapping->i_pages, (u64)start >> PAGE_SHIFT);
- pgoff_t max = (u64)(end - 1) >> PAGE_SHIFT;
+ XA_STATE(xas, &mapping->i_pages, start >> PAGE_SHIFT);
+ pgoff_t max = (end - 1) >> PAGE_SHIFT;
bool seek_data = (whence == SEEK_DATA);
struct page *page;
@@ -2697,7 +2697,7 @@ loff_t mapping_seek_hole_data(struct add
}
seek_size = seek_page_size(&xas, page);
- pos = round_up((u64)pos + 1, seek_size);
+ pos = round_up(pos + 1, seek_size);
start = page_seek_hole_data(&xas, mapping, page, start, pos,
seek_data);
if (start < pos)
@@ -2705,7 +2705,7 @@ loff_t mapping_seek_hole_data(struct add
if (start >= end)
break;
if (seek_size > PAGE_SIZE)
- xas_set(&xas, (u64)pos >> PAGE_SHIFT);
+ xas_set(&xas, pos >> PAGE_SHIFT);
if (!xa_is_value(page))
put_page(page);
}
_
Patches currently in -mm which might be from hughd@google.com are
mm-filemap-fix-find_lock_entries-hang-on-32-bit-thp.patch
mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit.patch
mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2.patch
mm-restore-node-stat-checking-in-proc-sys-vm-stat_refresh.patch
mm-no-more-einval-from-proc-sys-vm-stat_refresh.patch
mm-proc-sys-vm-stat_refresh-skip-checking-known-negative-stats.patch
mm-proc-sys-vm-stat_refresh-stop-checking-monotonic-numa-stats.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-22 23:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 23:03 + mm-filemap-fix-mapping_seek_hole_data-on-thp-32-bit-v2.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.