Skip to content
  • Andreas Mohr's avatar
    [PATCH] fs/bio.c: tweaks · bf02c082
    Andreas Mohr authored
    
    
    - Calculate a variable in bvec_alloc_bs() only once needed, not earlier
      (bio.o down from 18408 to 18376 Bytes, 32 Bytes saved, probably due to
      data locality improvements).
    
    - Init variable idx to silence a gcc warning which already existed in the
      unmodified original base file (bvec_alloc_bs() handles idx correctly, so
      there's no need for the warning):
    
    	fs/bio.c: In function `bio_alloc_bioset':
    	fs/bio.c:169: warning: `idx' may be used uninitialized in this function
    
    Signed-off-by: default avatarAndreas Mohr <andi@lisas.de>
    Acked-by: default avatarJens Axboe <axboe@kernel.dk>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    bf02c082