// SPDX-License-Identifier: GPL-2.0 /* * Some non-inline ceph helpers */ #include <linux/module.h> #include <linux/ceph/types.h> /* * return true if @layout appears to be valid */ int ceph_file_layout_is_valid(const struct ceph_file_layout *layout) { … } void ceph_file_layout_from_legacy(struct ceph_file_layout *fl, struct ceph_file_layout_legacy *legacy) { … } void ceph_file_layout_to_legacy(struct ceph_file_layout *fl, struct ceph_file_layout_legacy *legacy) { … } int ceph_flags_to_mode(int flags) { … } int ceph_caps_for_mode(int mode) { … }