diff options
author | Alex Elder <elder@inktank.com> | 2013-03-07 05:39:38 (GMT) |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 04:16:34 (GMT) |
commit | 35c7bfbcd4fabded090e5ab316a1cbf053a0a980 (patch) | |
tree | dcb5139eebfc6a7e77f582d7f1eb0618e4885377 /arch/sh/tools | |
parent | e788182fa6c1a400076278a75d0efa0a8a08e4ec (diff) | |
download | linux-fsl-qoriq-35c7bfbcd4fabded090e5ab316a1cbf053a0a980.tar.xz |
libceph: advance pagelist with list_rotate_left()
While processing an outgoing pagelist (either the data pagelist or
trail) in a ceph message, the messenger cycles through each of the
pages on the list. This is accomplished in out_msg_pos_next(), if
the end of the first page on the list is reached, the first page is
moved to the end of the list.
There is a list operation, list_rotate_left(), which performs
exactly this operation, and by using it, what's really going on
becomes more obvious.
So replace these two list_move_tail() calls with list_rotate_left().
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'arch/sh/tools')
0 files changed, 0 insertions, 0 deletions