summaryrefslogtreecommitdiffstats
path: root/fs/pstore/Makefile
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-14 02:50:01 +0100
committerSage Weil <sage@inktank.com>2013-05-02 06:17:48 +0200
commitd18d1e2807f38a94839be1f83682e17011f53322 (patch)
tree5237d307969cfa0604dbb3c1c93fa08ee78d5ef3 /fs/pstore/Makefile
parentlibceph: don't update op in calc_layout() (diff)
downloadlinux-d18d1e2807f38a94839be1f83682e17011f53322.tar.xz
linux-d18d1e2807f38a94839be1f83682e17011f53322.zip
libceph: clean up ceph_osd_new_request()
All callers of ceph_osd_new_request() pass either CEPH_OSD_OP_READ or CEPH_OSD_OP_WRITE as the opcode value. The function assumes it by filling in the extent fields in the ops array it builds. So just assert that is the case, and don't bother calling op_has_extent() before filling in the first osd operation in the array. Define some local variables to gather the information to fill into the first op, and then fill in the op array all in one place. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'fs/pstore/Makefile')
0 files changed, 0 insertions, 0 deletions