diff options
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index ce357602f471..e0d4c6a5e2d2 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -2085,7 +2085,7 @@ int block_write_begin(struct address_space *mapping, loff_t pos, unsigned len, | |||
2085 | } | 2085 | } |
2086 | EXPORT_SYMBOL(block_write_begin); | 2086 | EXPORT_SYMBOL(block_write_begin); |
2087 | 2087 | ||
2088 | int __generic_write_end(struct inode *inode, loff_t pos, unsigned copied, | 2088 | void __generic_write_end(struct inode *inode, loff_t pos, unsigned copied, |
2089 | struct page *page) | 2089 | struct page *page) |
2090 | { | 2090 | { |
2091 | loff_t old_size = inode->i_size; | 2091 | loff_t old_size = inode->i_size; |
@@ -2116,7 +2116,6 @@ int __generic_write_end(struct inode *inode, loff_t pos, unsigned copied, | |||
2116 | */ | 2116 | */ |
2117 | if (i_size_changed) | 2117 | if (i_size_changed) |
2118 | mark_inode_dirty(inode); | 2118 | mark_inode_dirty(inode); |
2119 | return copied; | ||
2120 | } | 2119 | } |
2121 | 2120 | ||
2122 | int block_write_end(struct file *file, struct address_space *mapping, | 2121 | int block_write_end(struct file *file, struct address_space *mapping, |
@@ -2160,7 +2159,8 @@ int generic_write_end(struct file *file, struct address_space *mapping, | |||
2160 | struct page *page, void *fsdata) | 2159 | struct page *page, void *fsdata) |
2161 | { | 2160 | { |
2162 | copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); | 2161 | copied = block_write_end(file, mapping, pos, len, copied, page, fsdata); |
2163 | return __generic_write_end(mapping->host, pos, copied, page); | 2162 | __generic_write_end(mapping->host, pos, copied, page); |
2163 | return copied; | ||
2164 | } | 2164 | } |
2165 | EXPORT_SYMBOL(generic_write_end); | 2165 | EXPORT_SYMBOL(generic_write_end); |
2166 | 2166 | ||