]> 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)
commit4a0f191cc413e7ca1f432a795b573e77a456cfd0
treedab28e8f0241775c2ecbc0bcb40e72a06fc6ca72
parenta123a92a85a64b2b0aa97706608092508241de7b
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: 0483375c55d8 ("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=921d825a0a52a68bed1dc2dbbb97f3011a5d9f2c
fs/cachefiles/rdwr.c
include/linux/pagemap.h