Home
last modified time | relevance | path

Searched hist:ad8c28a9eb81ca90fda29f48cfb4d19305943737 (Results 1 – 3 of 3) sorted by relevance

/linux/fs/ceph/
H A Dsuper.cdiff ad8c28a9eb81ca90fda29f48cfb4d19305943737 Mon Sep 09 21:58:55 CEST 2019 Jeff Layton <jlayton@kernel.org> ceph: convert int fields in ceph_mount_options to unsigned int

Most of these values should never be negative, so convert them to
unsigned values. Add some sanity checking to the parsed values, and
clean up some unneeded casts.

Note that while caps_max should never be negative, this patch leaves
it signed, since this value ends up later being compared to a signed
counter. Just ensure that userland never passes in a negative value
for caps_max.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
H A Dsuper.hdiff ad8c28a9eb81ca90fda29f48cfb4d19305943737 Mon Sep 09 21:58:55 CEST 2019 Jeff Layton <jlayton@kernel.org> ceph: convert int fields in ceph_mount_options to unsigned int

Most of these values should never be negative, so convert them to
unsigned values. Add some sanity checking to the parsed values, and
clean up some unneeded casts.

Note that while caps_max should never be negative, this patch leaves
it signed, since this value ends up later being compared to a signed
counter. Just ensure that userland never passes in a negative value
for caps_max.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
H A Dmds_client.cdiff ad8c28a9eb81ca90fda29f48cfb4d19305943737 Mon Sep 09 21:58:55 CEST 2019 Jeff Layton <jlayton@kernel.org> ceph: convert int fields in ceph_mount_options to unsigned int

Most of these values should never be negative, so convert them to
unsigned values. Add some sanity checking to the parsed values, and
clean up some unneeded casts.

Note that while caps_max should never be negative, this patch leaves
it signed, since this value ends up later being compared to a signed
counter. Just ensure that userland never passes in a negative value
for caps_max.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>