]> git.baikalelectronics.ru Git - kernel.git/commit
fs/cachefiles: Remove wait_bit_key layout dependency
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 20 Mar 2021 05:40:38 +0000 (05:40 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Mar 2021 20:54:29 +0000 (20:54 +0000)
commita51d21bc51e613aed593236566ab21bc08327de0
treedab28e8f0241775c2ecbc0bcb40e72a06fc6ca72
parent6df5d3638abbd720089114129009990030b5c942
fs/cachefiles: Remove wait_bit_key layout dependency

Cachefiles was relying on wait_page_key and wait_bit_key being the
same layout, which is fragile.  Now that wait_page_key is exposed in
the pagemap.h header, we can remove that fragility

A comment on the need to maintain structure layout equivalence was added by
Linus[1] and that is no longer applicable.

Fixes: 297320b50ce4 ("mm: add PageWaiters indicating tasks are waiting for a page bit")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: kafs-testing@auristor.com
cc: linux-cachefs@redhat.com
cc: linux-mm@kvack.org
Link: https://lore.kernel.org/r/20210320054104.1300774-2-willy@infradead.org/
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=41a603c3179779a58709c84286f7e162f64d025a
fs/cachefiles/rdwr.c
include/linux/pagemap.h