Skip to content

Commit 84a1041

Browse files
author
Matthew Wilcox (Oracle)
committed
fs: Remove pagecache_write_begin() and pagecache_write_end()
These wrappers have no more users; remove them. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent c5edd54 commit 84a1041

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

include/linux/fs.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,18 +380,6 @@ struct address_space_operations {
380380

381381
extern const struct address_space_operations empty_aops;
382382

383-
/*
384-
* pagecache_write_begin/pagecache_write_end must be used by general code
385-
* to write into the pagecache.
386-
*/
387-
int pagecache_write_begin(struct file *, struct address_space *mapping,
388-
loff_t pos, unsigned len, unsigned flags,
389-
struct page **pagep, void **fsdata);
390-
391-
int pagecache_write_end(struct file *, struct address_space *mapping,
392-
loff_t pos, unsigned len, unsigned copied,
393-
struct page *page, void *fsdata);
394-
395383
/**
396384
* struct address_space - Contents of a cacheable, mappable object.
397385
* @host: Owner, either the inode or the block_device.

mm/filemap.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,26 +3622,6 @@ struct page *read_cache_page_gfp(struct address_space *mapping,
36223622
}
36233623
EXPORT_SYMBOL(read_cache_page_gfp);
36243624

3625-
int pagecache_write_begin(struct file *file, struct address_space *mapping,
3626-
loff_t pos, unsigned len, unsigned flags,
3627-
struct page **pagep, void **fsdata)
3628-
{
3629-
const struct address_space_operations *aops = mapping->a_ops;
3630-
3631-
return aops->write_begin(file, mapping, pos, len, pagep, fsdata);
3632-
}
3633-
EXPORT_SYMBOL(pagecache_write_begin);
3634-
3635-
int pagecache_write_end(struct file *file, struct address_space *mapping,
3636-
loff_t pos, unsigned len, unsigned copied,
3637-
struct page *page, void *fsdata)
3638-
{
3639-
const struct address_space_operations *aops = mapping->a_ops;
3640-
3641-
return aops->write_end(file, mapping, pos, len, copied, page, fsdata);
3642-
}
3643-
EXPORT_SYMBOL(pagecache_write_end);
3644-
36453625
/*
36463626
* Warn about a page cache invalidation failure during a direct I/O write.
36473627
*/

0 commit comments

Comments
 (0)