mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
minix: remove writepage implementation
If the filesystem implements migrate_folio and writepages, there is no need for a writepage implementation. Link: https://lkml.kernel.org/r/20231215200245.748418-10-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jens Axboe <axboe@kernel.dk> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
44afc066c9
commit
1443a9fb4e
@ -17,6 +17,7 @@
|
||||
#include <linux/slab.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/highuid.h>
|
||||
#include <linux/mpage.h>
|
||||
#include <linux/vfs.h>
|
||||
#include <linux/writeback.h>
|
||||
|
||||
@ -397,9 +398,10 @@ static int minix_get_block(struct inode *inode, sector_t block,
|
||||
return V2_minix_get_block(inode, block, bh_result, create);
|
||||
}
|
||||
|
||||
static int minix_writepage(struct page *page, struct writeback_control *wbc)
|
||||
static int minix_writepages(struct address_space *mapping,
|
||||
struct writeback_control *wbc)
|
||||
{
|
||||
return block_write_full_page(page, minix_get_block, wbc);
|
||||
return mpage_writepages(mapping, wbc, minix_get_block);
|
||||
}
|
||||
|
||||
static int minix_read_folio(struct file *file, struct folio *folio)
|
||||
@ -444,9 +446,10 @@ static const struct address_space_operations minix_aops = {
|
||||
.dirty_folio = block_dirty_folio,
|
||||
.invalidate_folio = block_invalidate_folio,
|
||||
.read_folio = minix_read_folio,
|
||||
.writepage = minix_writepage,
|
||||
.writepages = minix_writepages,
|
||||
.write_begin = minix_write_begin,
|
||||
.write_end = generic_write_end,
|
||||
.migrate_folio = buffer_migrate_folio,
|
||||
.bmap = minix_bmap,
|
||||
.direct_IO = noop_direct_IO
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user