dm cache: return -EINVAL if the user specifies unknown cache policy
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 1 Oct 2013 22:35:39 +0000 (18:35 -0400)
committerMike Snitzer <snitzer@redhat.com>
Sat, 9 Nov 2013 23:20:18 +0000 (18:20 -0500)
commit4cb3e1db21a94781bbf05238687c3e8a715ab2f9
treecb1f1a00806693dedcb98eec12f81a1598d36924
parentdd8b0c2096e53b336324e99455efcc498599ba0f
dm cache: return -EINVAL if the user specifies unknown cache policy

Return -EINVAL when the specified cache policy is unknown rather than
returning -ENOMEM.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy.c
drivers/md/dm-cache-target.c