super.h (40dcf75e82f875fd95abb99d08ef3eeb025e16a9) super.h (2ccb45462aeaf0831397b90d31d3d50a7704fa1f)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _FS_CEPH_SUPER_H
3#define _FS_CEPH_SUPER_H
4
5#include <linux/ceph/ceph_debug.h>
6
7#include <asm/unaligned.h>
8#include <linux/backing-dev.h>

--- 29 unchanged lines hidden (view full) ---

38#define CEPH_MOUNT_OPT_NOASYNCREADDIR (1<<7) /* no dcache readdir */
39#define CEPH_MOUNT_OPT_INO32 (1<<8) /* 32 bit inos */
40#define CEPH_MOUNT_OPT_DCACHE (1<<9) /* use dcache for readdir etc */
41#define CEPH_MOUNT_OPT_FSCACHE (1<<10) /* use fscache */
42#define CEPH_MOUNT_OPT_NOPOOLPERM (1<<11) /* no pool permission check */
43#define CEPH_MOUNT_OPT_MOUNTWAIT (1<<12) /* mount waits if no mds is up */
44#define CEPH_MOUNT_OPT_NOQUOTADF (1<<13) /* no root dir quota in statfs */
45#define CEPH_MOUNT_OPT_NOCOPYFROM (1<<14) /* don't use RADOS 'copy-from' op */
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _FS_CEPH_SUPER_H
3#define _FS_CEPH_SUPER_H
4
5#include <linux/ceph/ceph_debug.h>
6
7#include <asm/unaligned.h>
8#include <linux/backing-dev.h>

--- 29 unchanged lines hidden (view full) ---

38#define CEPH_MOUNT_OPT_NOASYNCREADDIR (1<<7) /* no dcache readdir */
39#define CEPH_MOUNT_OPT_INO32 (1<<8) /* 32 bit inos */
40#define CEPH_MOUNT_OPT_DCACHE (1<<9) /* use dcache for readdir etc */
41#define CEPH_MOUNT_OPT_FSCACHE (1<<10) /* use fscache */
42#define CEPH_MOUNT_OPT_NOPOOLPERM (1<<11) /* no pool permission check */
43#define CEPH_MOUNT_OPT_MOUNTWAIT (1<<12) /* mount waits if no mds is up */
44#define CEPH_MOUNT_OPT_NOQUOTADF (1<<13) /* no root dir quota in statfs */
45#define CEPH_MOUNT_OPT_NOCOPYFROM (1<<14) /* don't use RADOS 'copy-from' op */
46#define CEPH_MOUNT_OPT_ASYNC_DIROPS (1<<15) /* allow async directory ops */
46
47#define CEPH_MOUNT_OPT_DEFAULT \
48 (CEPH_MOUNT_OPT_DCACHE | \
49 CEPH_MOUNT_OPT_NOCOPYFROM)
50
51#define ceph_set_mount_opt(fsc, opt) \
47
48#define CEPH_MOUNT_OPT_DEFAULT \
49 (CEPH_MOUNT_OPT_DCACHE | \
50 CEPH_MOUNT_OPT_NOCOPYFROM)
51
52#define ceph_set_mount_opt(fsc, opt) \
52 (fsc)->mount_options->flags |= CEPH_MOUNT_OPT_##opt;
53 (fsc)->mount_options->flags |= CEPH_MOUNT_OPT_##opt
54#define ceph_clear_mount_opt(fsc, opt) \
55 (fsc)->mount_options->flags &= ~CEPH_MOUNT_OPT_##opt
53#define ceph_test_mount_opt(fsc, opt) \
54 (!!((fsc)->mount_options->flags & CEPH_MOUNT_OPT_##opt))
55
56/* max size of osd read request, limited by libceph */
57#define CEPH_MAX_READ_SIZE CEPH_MSG_MAX_DATA_LEN
58/* osd has a configurable limitaion of max write size.
59 * CEPH_MSG_MAX_DATA_LEN should be small enough. */
60#define CEPH_MAX_WRITE_SIZE CEPH_MSG_MAX_DATA_LEN

--- 1124 unchanged lines hidden ---
56#define ceph_test_mount_opt(fsc, opt) \
57 (!!((fsc)->mount_options->flags & CEPH_MOUNT_OPT_##opt))
58
59/* max size of osd read request, limited by libceph */
60#define CEPH_MAX_READ_SIZE CEPH_MSG_MAX_DATA_LEN
61/* osd has a configurable limitaion of max write size.
62 * CEPH_MSG_MAX_DATA_LEN should be small enough. */
63#define CEPH_MAX_WRITE_SIZE CEPH_MSG_MAX_DATA_LEN

--- 1124 unchanged lines hidden ---