lkml.org 
[lkml]   [2016]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 15/16] md/bitmap: Add spaces around three comparison operators
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Tue, 27 Sep 2016 18:08:04 +0200

    The script "checkpatch.pl" can point information out like the following.

    ERROR: spaces required around that '==' (ctx:VxV)

    Thus fix the affected source code places.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/md/bitmap.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
    index 9d77f16..d029576 100644
    --- a/drivers/md/bitmap.c
    +++ b/drivers/md/bitmap.c
    @@ -303,7 +303,7 @@ static void write_page(struct bitmap *bitmap, struct page *page, int wait)

    if (wait)
    wait_event(bitmap->write_wait,
    - atomic_read(&bitmap->pending_writes)==0);
    + atomic_read(&bitmap->pending_writes) == 0);
    }
    if (test_bit(BITMAP_WRITE_ERROR, &bitmap->flags))
    bitmap_file_kick(bitmap);
    @@ -400,7 +400,7 @@ static int read_page(struct file *file, unsigned long index,
    page->index = index;

    wait_event(bitmap->write_wait,
    - atomic_read(&bitmap->pending_writes)==0);
    + atomic_read(&bitmap->pending_writes) == 0);
    if (test_bit(BITMAP_WRITE_ERROR, &bitmap->flags)) {
    ret = -EIO;
    report_failure:
    @@ -1003,7 +1003,7 @@ void bitmap_unplug(struct bitmap *bitmap)
    }
    if (bitmap->storage.file)
    wait_event(bitmap->write_wait,
    - atomic_read(&bitmap->pending_writes)==0);
    + atomic_read(&bitmap->pending_writes) == 0);
    else
    md_super_wait(bitmap->mddev);

    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-27 19:04    [W:5.354 / U:1.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site