]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Refactor chunk encoding
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Jun 2019 14:33:31 +0000 (10:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 9 Jul 2019 14:30:25 +0000 (10:30 -0400)
commit9d55ae27bb1b3d70b6d2f71e29df2e416b6aba13
tree4830179ecafcd96423feefb4a60ffa3dd5df37d5
parente392701636b911f789f2f443f6cda9ae5a1dd860
xprtrdma: Refactor chunk encoding

Clean up.

Move the "not present" case into the individual chunk encoders. This
improves code organization and readability.

The reason for the original organization was to optimize for the
case where there there are no chunks. The optimization turned out to
be inconsequential, so let's err on the side of code readability.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c