git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'next' into upstream-merge
[pandora-kernel.git]
/
fs
/
ext4
/
inode.c
diff --git
a/fs/ext4/inode.c
b/fs/ext4/inode.c
index
3ba237b
..
2d6c6c8
100644
(file)
--- a/
fs/ext4/inode.c
+++ b/
fs/ext4/inode.c
@@
-1551,10
+1551,10
@@
static int do_journal_get_write_access(handle_t *handle,
if (!buffer_mapped(bh) || buffer_freed(bh))
return 0;
/*
if (!buffer_mapped(bh) || buffer_freed(bh))
return 0;
/*
- * __block_
prepare_write
() could have dirtied some buffers. Clean
+ * __block_
write_begin
() could have dirtied some buffers. Clean
* the dirty bit as jbd2_journal_get_write_access() could complain
* otherwise about fs integrity issues. Setting of the dirty bit
* the dirty bit as jbd2_journal_get_write_access() could complain
* otherwise about fs integrity issues. Setting of the dirty bit
- * by __block_
prepare_write
() isn't a real problem here as we clear
+ * by __block_
write_begin
() isn't a real problem here as we clear
* the bit before releasing a page lock and thus writeback cannot
* ever write the buffer.
*/
* the bit before releasing a page lock and thus writeback cannot
* ever write the buffer.
*/
@@
-2065,11
+2065,11
@@
static int mpage_da_submit_io(struct mpage_da_data *mpd,
/*
* If the page does not have buffers (for
* whatever reason), try to create them using
/*
* If the page does not have buffers (for
* whatever reason), try to create them using
- *
block_prepare_write
. If this fails,
+ *
__block_write_begin
. If this fails,
* redirty the page and move on.
*/
if (!page_has_buffers(page)) {
* redirty the page and move on.
*/
if (!page_has_buffers(page)) {
- if (
block_prepare_write
(page, 0, len,
+ if (
__block_write_begin
(page, 0, len,
noalloc_get_block_write)) {
redirty_page:
redirty_page_for_writepage(mpd->wbc,
noalloc_get_block_write)) {
redirty_page:
redirty_page_for_writepage(mpd->wbc,
@@
-2550,8
+2550,7
@@
static int ext4_da_get_block_prep(struct inode *inode, sector_t iblock,
if (buffer_delay(bh))
return 0; /* Not sure this could or should happen */
/*
if (buffer_delay(bh))
return 0; /* Not sure this could or should happen */
/*
- * XXX: __block_prepare_write() unmaps passed block,
- * is it OK?
+ * XXX: __block_write_begin() unmaps passed block, is it OK?
*/
ret = ext4_da_reserve_space(inode, iblock);
if (ret)
*/
ret = ext4_da_reserve_space(inode, iblock);
if (ret)
@@
-2583,7
+2582,7
@@
static int ext4_da_get_block_prep(struct inode *inode, sector_t iblock,
/*
* This function is used as a standard get_block_t calback function
* when there is no desire to allocate any blocks. It is used as a
/*
* This function is used as a standard get_block_t calback function
* when there is no desire to allocate any blocks. It is used as a
- * callback function for block_
prepare_write
() and block_write_full_page().
+ * callback function for block_
write_begin
() and block_write_full_page().
* These functions should only try to map a single block at a time.
*
* Since this function doesn't do block allocations even if the caller
* These functions should only try to map a single block at a time.
*
* Since this function doesn't do block allocations even if the caller
@@
-2716,11
+2715,11
@@
static int ext4_writepage(struct page *page,
/*
* If the page does not have buffers (for whatever reason),
/*
* If the page does not have buffers (for whatever reason),
- * try to create them using
block_prepare_write
. If this
+ * try to create them using
__block_write_begin
. If this
* fails, redirty the page and move on.
*/
if (!page_buffers(page)) {
* fails, redirty the page and move on.
*/
if (!page_buffers(page)) {
- if (
block_prepare_write
(page, 0, len,
+ if (
__block_write_begin
(page, 0, len,
noalloc_get_block_write)) {
redirty_page:
redirty_page_for_writepage(wbc, page);
noalloc_get_block_write)) {
redirty_page:
redirty_page_for_writepage(wbc, page);