diff options
author | NeilBrown <neilb@suse.de> | 2014-08-23 12:19:26 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-10-09 01:07:04 +0200 |
commit | 3fd83717e47687817f5d3e45696bf22456d8b422 (patch) | |
tree | 7a745a26dc1d45de736fb1e39ce3eb5250068724 /drivers/md/raid1.c | |
parent | md/raid1: minor typos and reformatting. (diff) | |
download | linux-3fd83717e47687817f5d3e45696bf22456d8b422.tar.xz linux-3fd83717e47687817f5d3e45696bf22456d8b422.zip |
md: use set_bit/clear_bit instead of shift/mask for bi_flags changes.
Using {set,clear}_bit is more consistent than shifting and masking.
No functional change.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 0111ff3a81ad..019aa1840210 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -2722,7 +2722,7 @@ static sector_t sync_request(struct mddev *mddev, sector_t sector_nr, int *skipp /* remove last page from this bio */ bio->bi_vcnt--; bio->bi_iter.bi_size -= len; - bio->bi_flags &= ~(1<< BIO_SEG_VALID); + __clear_bit(BIO_SEG_VALID, &bio->bi_flags); } goto bio_full; } |