fs: kill block_prepare_write
__block_write_begin and block_prepare_write are identical except for slightly different calling conventions. Convert all callers to the __block_write_begin calling conventions and drop block_prepare_write. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
这个提交包含在:
@@ -1696,8 +1696,8 @@ static int ext3_journalled_writepage(struct page *page,
|
||||
* doesn't seem much point in redirtying the page here.
|
||||
*/
|
||||
ClearPageChecked(page);
|
||||
ret = block_prepare_write(page, 0, PAGE_CACHE_SIZE,
|
||||
ext3_get_block);
|
||||
ret = __block_write_begin(page, 0, PAGE_CACHE_SIZE,
|
||||
ext3_get_block);
|
||||
if (ret != 0) {
|
||||
ext3_journal_stop(handle);
|
||||
goto out_unlock;
|
||||
|
在新工单中引用
屏蔽一个用户