You need to sign in or sign up before continuing.
  • S
    btrfs: fix build warning · 89771cc9
    Sudip Mukherjee 提交于
    We were getting build warning about:
    fs/btrfs/extent-tree.c:7021:34: warning: ‘used_bg’ may be used
    	uninitialized in this function
    
    It is not a valid warning as used_bg is never used uninitilized since
    locked is initially false so we can never be in the section where
    'used_bg' is used. But gcc is not able to understand that and we can
    initialize it while declaring to silence the warning.
    Signed-off-by: NSudip Mukherjee <sudip@vectorindia.org>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    89771cc9
extent-tree.c 292.4 KB