From: Feng Tang <feng.tang@intel.com>
To: linux-ext4@vger.kernel.org, tytso@mit.edu
Cc: Feng Tang <feng.tang@intel.com>
Subject: [PATCH] ext4: remove the duplicate set_buffer_mapped() for ext4_da_get_block_prep()
Date: Tue, 22 Feb 2011 15:40:38 +0800 [thread overview]
Message-ID: <1298360438-9521-1-git-send-email-feng.tang@intel.com> (raw)
The map_bh() called right before it already set the buffer_head to mapped.
Signed-off-by: Feng Tang <feng.tang@intel.com>
---
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
next reply other threads:[~2011-02-22 7:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-22 7:40 Feng Tang [this message]
2011-03-23 18:05 ` [PATCH] ext4: remove the duplicate set_buffer_mapped() for ext4_da_get_block_prep() Ted Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1298360438-9521-1-git-send-email-feng.tang@intel.com \
--to=feng.tang@intel.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).