| To: | axboe <axboe@xxxxxxxxx>, "konrad.wilk" <konrad.wilk@xxxxxxxxxx>, "chris.mason" <chris.mason@xxxxxxxxxxxx>, viro <viro@xxxxxxxxxxxxxxxxxx>, tytso <tytso@xxxxxxx>, "adilger.kernel" <adilger.kernel@xxxxxxxxx>, shaggy <shaggy@xxxxxxxxxx>, mfasheh <mfasheh@xxxxxxxx>, jlbec <jlbec@xxxxxxxxxxxx>, bpm <bpm@xxxxxxx>, elder <elder@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 6/8]fs/jfs: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page(). |
| From: | majianpeng <majianpeng@xxxxxxxxx> |
| Date: | Mon, 30 Jul 2012 15:24:27 +0800 |
| Cc: | linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>, linux-btrfs <linux-btrfs@xxxxxxxxxxxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, linux-ext4 <linux-ext4@xxxxxxxxxxxxxxx>, jfs-discussion <jfs-discussion@xxxxxxxxxxxxxxxxxxxxx>, xfs <xfs@xxxxxxxxxxx> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=UwQPdBidjFMROswxGZnsy4rKT9m2e7/NA2RETBQncZk=; b=r0gIZ8l0fmaMzSJE5VV3bxTWB6iBKHQy9pjX83nSRDBsIGuaZg/23Y+MKgWhZFg7TK K9ConPL/qjAPBc17XIghKD8WvDtHtSy7b2ptUGtzMdkG32DBMU7uL6dxGI+8iMTGB50R M/PqcCZaO7JW8lxUOUtVloS006WUooTzJ40DErbB3nCBir6p6n1sb5oiJScf/GDFfJMK lEHKpElMK7ATtS8j21rCa2IoG4OZkz41yC0MvkfM/tYM5gQUTmz9GzqttLsVPQn0iYLx vdQLscLDXvnLq91JIPQ4FAn929AYTka8CZjnkfWHQnZJQ7CONt/lXhhWW0XK0syqwzbl S/yA== |
Because call bio_alloc, the bi_rw is zero by default,but in
bio_add_page used the bi_rw. So evalue bi_rw.
Signed-off-by: Jianpeng Ma <majianpeng@xxxxxxxxx>
---
fs/jfs/jfs_metapage.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c
index 6740d34..db79ae0 100644
--- a/fs/jfs/jfs_metapage.c
+++ b/fs/jfs/jfs_metapage.c
@@ -441,6 +441,7 @@ static int metapage_writepage(struct page *page, struct
writeback_control *wbc)
bio->bi_sector = pblock << (inode->i_blkbits - 9);
bio->bi_end_io = metapage_write_end_io;
bio->bi_private = page;
+ bio->bi_rw = WRITE;
/* Don't call bio_add_page yet, we may add to this vec */
bio_offset = offset;
--
1.7.9.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 5/8]fs/ext4: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page()., majianpeng |
|---|---|
| Next by Date: | [PATCH 8/8]fs/xfs: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page()., majianpeng |
| Previous by Thread: | [PATCH 5/8]fs/ext4: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page()., majianpeng |
| Next by Thread: | [PATCH 8/8]fs/xfs: Evalue bio->bi_rw after calling bio_alloc() and before calling bio_add_page()., majianpeng |
| Indexes: | [Date] [Thread] [Top] [All Lists] |