• Evgeniy Dushistov's avatar
    [PATCH] ufs: one way to access super block · 647b7e87
    Evgeniy Dushistov authored
    
    
    Super block of UFS usually has size >512, because of fragment size may be 512,
    this cause some problems.
    
    Currently, there are two methods to work with ufs super block:
    
    1) split structure which describes ufs super blocks into structures with
       size <=512
    
    2) use one structure which describes ufs super block, and hope that array
       of "buffer_head" which holds "super block", has such construction:
    
    	bh[n]->b_data + bh[n]->b_size == bh[n + 1]->b_data
    
    The second variant may cause some problems in the future, and usage of two
    variants cause unnecessary code duplication.
    
    This patch remove the second variant.  Also patch contains some CodingStyle
    fixes.
    Signed-off-by: default avatarEvgeniy Dushistov <dushistov@mail.ru>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    647b7e87