• N
    udf: add writepages support for udf · 378b8e1a
    Namjae Jeon 提交于
    Use mpage_writepages() instead of multiple calls to udf_writepage()
    to make performance higher.
    
    *Write Speed with writepage() =
     RecSize     ReadSpeed    WriteSpeed  RanReadSpeed RanWriteSpeed
    10485760    0.00MB/sec    8.56MB/sec    0.00MB/sec    8.20MB/sec
     1048576    0.00MB/sec    8.57MB/sec    0.00MB/sec    6.42MB/sec
      524288    0.00MB/sec    8.59MB/sec    0.00MB/sec    5.24MB/sec
      262144    0.00MB/sec    8.59MB/sec    0.00MB/sec    4.17MB/sec
      131072    0.00MB/sec    8.53MB/sec    0.00MB/sec    3.32MB/sec
       65536    0.00MB/sec    8.49MB/sec    0.00MB/sec    2.31MB/sec
    
    *Write Speed with writepages()
    RecSize     ReadSpeed    WriteSpeed  RanReadSpeed RanWriteSpeed
    10485760    0.00MB/sec    9.88MB/sec    0.00MB/sec    9.60MB/sec
     1048576    0.00MB/sec    9.95MB/sec    0.00MB/sec    7.52MB/sec
      524288    0.00MB/sec    9.98MB/sec    0.00MB/sec    6.16MB/sec
      262144    0.00MB/sec    9.90MB/sec    0.00MB/sec    4.98MB/sec
      131072    0.00MB/sec    9.89MB/sec    0.00MB/sec    3.78MB/sec
       65536    0.00MB/sec    9.81MB/sec    0.00MB/sec    2.50MB/sec
    
    There is about 1.4MB/sec speed improvement over 8.5MB/sec,
    which comes out around 16% improvement.
    Signed-off-by: NNamjae Jeon <linkinjeon@gmail.com>
    Signed-off-by: NAshish Sangwan <ashish.sangwan2@gmail.com>
    Signed-off-by: NJan Kara <jack@suse.cz>
    378b8e1a
inode.c 61.7 KB