]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/bluefs: drop redundant eof check for read_random() 10923/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 31 Aug 2016 02:47:50 +0000 (10:47 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 31 Aug 2016 03:30:35 +0000 (11:30 +0800)
commit47c8a214356983f0539f24fe1c5724b3bbae0406
treee103703466d05cdb6b9179f5b3b0a3f8576bfb7d
parent3ea32042dd0423b5682ddcce74a5f549c086cc14
os/bluestore/bluefs: drop redundant eof check for read_random()

Because we have done the sanity check and fixed the length
at the entrance, so we don't have to check it again,
especially in the while loop, which is less efficient.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueFS.cc