LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6 patch] remove generic_commit_write()
@ 2008-02-17 8:16 Adrian Bunk
2008-02-17 13:25 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-02-17 8:16 UTC (permalink / raw)
To: Nick Piggin, viro; +Cc: linux-kernel, linux-fsdevel
This patch removes the obsolete and no longer used generic_commit_write().
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
fs/buffer.c | 18 ------------------
include/linux/buffer_head.h | 1 -
2 files changed, 19 deletions(-)
ef68a189129f02603fb49b09d331d1ea2fcd25da diff --git a/fs/buffer.c b/fs/buffer.c
index 9f55970..4f89fd9 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -2311,23 +2311,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
@@ -3300,7 +3283,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);
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h
index 932eb02..82aa36c 100644
--- a/include/linux/buffer_head.h
+++ b/include/linux/buffer_head.h
@@ -225,7 +225,6 @@ int block_page_mkwrite(struct vm_area_struct *vma, struct page *page,
get_block_t get_block);
void block_sync_page(struct page *);
sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *);
-int generic_commit_write(struct file *, struct page *, unsigned, unsigned);
int block_truncate_page(struct address_space *, loff_t, get_block_t *);
int file_fsync(struct file *, struct dentry *, int);
int nobh_write_begin(struct file *, struct address_space *,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [2.6 patch] remove generic_commit_write()
2008-02-17 8:16 [2.6 patch] remove generic_commit_write() Adrian Bunk
@ 2008-02-17 13:25 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2008-02-17 13:25 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Nick Piggin, viro, linux-kernel, linux-fsdevel
On Sun, Feb 17, 2008 at 10:16:37AM +0200, Adrian Bunk wrote:
> This patch removes the obsolete and no longer used generic_commit_write().
Given that the APIs these are helpers for are gone this function should
go away.
ACK.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-17 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17 8:16 [2.6 patch] remove generic_commit_write() Adrian Bunk
2008-02-17 13:25 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).