From: Alex Elder Date: Wed, 14 Nov 2012 03:11:15 +0000 (-0600) Subject: libceph: don't set flags in ceph_osdc_alloc_request() X-Git-Tag: v3.9-rc1~41^2~21^2~59^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d178a9e74006e80f568d87e29f2a68f14fc7cbb1;p=pandora-kernel.git libceph: don't set flags in ceph_osdc_alloc_request() The only thing ceph_osdc_alloc_request() really does with the flags value it is passed is assign it to the newly-created osd request structure. Do that in the caller instead. Both callers subsequently call ceph_osdc_build_request(), so have that function (instead of ceph_osdc_alloc_request()) issue a warning if a request comes through with neither the read nor write flags set. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed