mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
remove generic_commit_write()
Remove the obsolete and no longer used generic_commit_write(). Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
45cc2b96f2
commit
946a57b526
2 changed files with 0 additions and 19 deletions
18
fs/buffer.c
18
fs/buffer.c
|
@ -2328,23 +2328,6 @@ int block_commit_write(struct page *page, unsigned from, unsigned to)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int generic_commit_write(struct file *file, struct page *page,
|
||||
unsigned from, unsigned to)
|
||||
{
|
||||
struct inode *inode = page->mapping->host;
|
||||
loff_t pos = ((loff_t)page->index << PAGE_CACHE_SHIFT) + to;
|
||||
__block_commit_write(inode,page,from,to);
|
||||
/*
|
||||
* No need to use i_size_read() here, the i_size
|
||||
* cannot change under us because we hold i_mutex.
|
||||
*/
|
||||
if (pos > inode->i_size) {
|
||||
i_size_write(inode, pos);
|
||||
mark_inode_dirty(inode);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* block_page_mkwrite() is not allowed to change the file size as it gets
|
||||
* called from a page fault handler when a page is first dirtied. Hence we must
|
||||
|
@ -3315,7 +3298,6 @@ EXPORT_SYMBOL(end_buffer_write_sync);
|
|||
EXPORT_SYMBOL(file_fsync);
|
||||
EXPORT_SYMBOL(fsync_bdev);
|
||||
EXPORT_SYMBOL(generic_block_bmap);
|
||||
EXPORT_SYMBOL(generic_commit_write);
|
||||
EXPORT_SYMBOL(generic_cont_expand_simple);
|
||||
EXPORT_SYMBOL(init_buffer);
|
||||
EXPORT_SYMBOL(invalidate_bdev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue