[PATCH] ext4: remove the duplicate set_buffer_mapped() for ext4_da_get_block_prep()

From
Feng Tang <hidden>
Date
2011-02-22 07:40:08
The map_bh() called right before it already set the buffer_head to mapped.

Signed-off-by: Feng Tang <redacted>
---
 fs/ext4/inode.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 9f7f9e4..6fe60f5 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2597,7 +2597,6 @@ static int ext4_da_get_block_prep(struct inode *inode, sector_t iblock,
 		 * for partial write.
 		 */
 		set_buffer_new(bh);
-		set_buffer_mapped(bh);
 	}
 	return 0;
 }
-- 
1.7.0.4
Thread (2 messages) 2 messages, 2 authors, last reply 2011-03-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help