mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
adfs: 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-6-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
12ac5a65cb
commit
81d469d330
1 changed files with 7 additions and 4 deletions
|
@ -5,6 +5,7 @@
|
||||||
* Copyright (C) 1997-1999 Russell King
|
* Copyright (C) 1997-1999 Russell King
|
||||||
*/
|
*/
|
||||||
#include <linux/buffer_head.h>
|
#include <linux/buffer_head.h>
|
||||||
|
#include <linux/mpage.h>
|
||||||
#include <linux/writeback.h>
|
#include <linux/writeback.h>
|
||||||
#include "adfs.h"
|
#include "adfs.h"
|
||||||
|
|
||||||
|
@ -33,9 +34,10 @@ abort_toobig:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int adfs_writepage(struct page *page, struct writeback_control *wbc)
|
static int adfs_writepages(struct address_space *mapping,
|
||||||
|
struct writeback_control *wbc)
|
||||||
{
|
{
|
||||||
return block_write_full_page(page, adfs_get_block, wbc);
|
return mpage_writepages(mapping, wbc, adfs_get_block);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int adfs_read_folio(struct file *file, struct folio *folio)
|
static int adfs_read_folio(struct file *file, struct folio *folio)
|
||||||
|
@ -76,10 +78,11 @@ static const struct address_space_operations adfs_aops = {
|
||||||
.dirty_folio = block_dirty_folio,
|
.dirty_folio = block_dirty_folio,
|
||||||
.invalidate_folio = block_invalidate_folio,
|
.invalidate_folio = block_invalidate_folio,
|
||||||
.read_folio = adfs_read_folio,
|
.read_folio = adfs_read_folio,
|
||||||
.writepage = adfs_writepage,
|
.writepages = adfs_writepages,
|
||||||
.write_begin = adfs_write_begin,
|
.write_begin = adfs_write_begin,
|
||||||
.write_end = generic_write_end,
|
.write_end = generic_write_end,
|
||||||
.bmap = _adfs_bmap
|
.migrate_folio = buffer_migrate_folio,
|
||||||
|
.bmap = _adfs_bmap,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue