Thread (10 messages) 10 messages, 3 authors, 2021-02-24

Re: [PATCH 1/3] mm: provide filemap_range_needs_writeback() helper

From: Matthew Wilcox <willy@infradead.org>
Date: 2021-02-24 16:53:46
Also in: linux-fsdevel

On Wed, Feb 24, 2021 at 09:44:53AM -0700, Jens Axboe wrote:
quoted hunk ↗ jump to hunk
+++ b/include/linux/fs.h
@@ -2633,6 +2633,8 @@ static inline int filemap_fdatawait(struct address_space *mapping)
 
 extern bool filemap_range_has_page(struct address_space *, loff_t lstart,
 				  loff_t lend);
+extern bool filemap_range_needs_writeback(struct address_space *,
+					  loff_t lstart, loff_t lend);
 extern int filemap_write_and_wait_range(struct address_space *mapping,
 				        loff_t lstart, loff_t lend);
 extern int __filemap_fdatawrite_range(struct address_space *mapping,
These prototypes should all be in pagemap.h, not fs.h.  I can do
a followup patch if you don't want to do it as part of this set.
Also we're deprecating the use of 'extern' for prototypes.

Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help