rbd: skip the copyup when an entire object writing
authorGuangliang Zhao <lucienchao@gmail.com>
Tue, 1 Apr 2014 14:22:15 +0000 (22:22 +0800)
committerIlya Dryomov <idryomov@redhat.com>
Tue, 14 Oct 2014 17:03:29 +0000 (21:03 +0400)
commitc622d226155b12276ae3d29d546f4b314d7cd68c
treece4463c5d7f0b6f53237c184b4d18db3f55826ef
parent70d045f660c7331bce8c9377929b52a9738a12cb
rbd: skip the copyup when an entire object writing

It need to copyup the parent's content when layered writing,
but an entire object write would overwrite it, so skip it.

Signed-off-by: Guangliang Zhao <lucienchao@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/block/rbd.c