udf: avoid redundant memcpy when writing data in ICB
authorChao Yu <chao2.yu@samsung.com>
Tue, 15 Jul 2014 01:38:51 +0000 (09:38 +0800)
committerJan Kara <jack@suse.cz>
Tue, 15 Jul 2014 20:40:24 +0000 (22:40 +0200)
commit3f1be4f9c9dc926c1b96f14f88e91b8b0d1f88fd
tree7d0d45c7d2c57c34baa689d78a4534ce5c14213a
parentc7ff48212d3ede34aa41842929a5b3ebf8f5ca4d
udf: avoid redundant memcpy when writing data in ICB

Valid data within i_size in page cache will be copied to ICB cache when we
writeback the page by invoking udf_adinicb_writepage, so the copy in
udf_adinicb_write_end is redundant.

After we remove the copy, it's better to use simple_write_end directly in
udf_adinicb_aops instead of udf_adinicb_write_end.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/file.c