]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf05829881e9e7cc97d15c05722fd8f697078497f
tree7d0d45c7d2c57c34baa689d78a4534ce5c14213a
parent47a72cfdc8a61c391c5749f6cd5e19cb49c53f2a
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