aboutsummaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2007-10-16 04:25:15 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:42:56 -0400
commita20fa20c549ed569885d871f689a59cfd2f6ff77 (patch)
treebc6f7119cec83032eb43c27d6ec7bbbebd2fdddb /fs/buffer.c
parentf7557e8f7ff785d6c2b5bc914cd1675314ff0fcf (diff)
With reiserfs no longer using the weird generic_cont_expand, remove it completely.
Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 1f1577490417..a89d25bf1171 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -2189,25 +2189,6 @@ out:
2189 return err; 2189 return err;
2190} 2190}
2191 2191
2192int generic_cont_expand(struct inode *inode, loff_t size)
2193{
2194 unsigned int offset;
2195
2196 offset = (size & (PAGE_CACHE_SIZE - 1)); /* Within page */
2197
2198 /* ugh. in prepare/commit_write, if from==to==start of block, we
2199 * skip the prepare. make sure we never send an offset for the start
2200 * of a block.
2201 * XXX: actually, this should be handled in those filesystems by
2202 * checking for the AOP_FLAG_CONT_EXPAND flag.
2203 */
2204 if ((offset & (inode->i_sb->s_blocksize - 1)) == 0) {
2205 /* caller must handle this extra byte. */
2206 size++;
2207 }
2208 return generic_cont_expand_simple(inode, size);
2209}
2210
2211int cont_expand_zero(struct file *file, struct address_space *mapping, 2192int cont_expand_zero(struct file *file, struct address_space *mapping,
2212 loff_t pos, loff_t *bytes) 2193 loff_t pos, loff_t *bytes)
2213{ 2194{
@@ -3192,7 +3173,6 @@ EXPORT_SYMBOL(file_fsync);
3192EXPORT_SYMBOL(fsync_bdev); 3173EXPORT_SYMBOL(fsync_bdev);
3193EXPORT_SYMBOL(generic_block_bmap); 3174EXPORT_SYMBOL(generic_block_bmap);
3194EXPORT_SYMBOL(generic_commit_write); 3175EXPORT_SYMBOL(generic_commit_write);
3195EXPORT_SYMBOL(generic_cont_expand);
3196EXPORT_SYMBOL(generic_cont_expand_simple); 3176EXPORT_SYMBOL(generic_cont_expand_simple);
3197EXPORT_SYMBOL(init_buffer); 3177EXPORT_SYMBOL(init_buffer);
3198EXPORT_SYMBOL(invalidate_bdev); 3178EXPORT_SYMBOL(invalidate_bdev);