diff --git a/fs/epfs/Kconfig b/fs/epfs/Kconfig index 059c3a0cc10d40f8cc99efd7bf39f1b9ea771615..6a631dba7ad89dcc7666c96d6b4509f859c46372 100644 --- a/fs/epfs/Kconfig +++ b/fs/epfs/Kconfig @@ -1,12 +1,12 @@ # SPDX-License-Identifier: GPL-2.0 config EPFS - tristate "Enhanced Proxy File System support" + bool "Enhanced Proxy File System support" depends on TMPFS help Enhanced Proxy File System support. If unsure, say N. config EPFS_DEBUG - tristate "Debug message of Enhanced Proxy File System" + bool "Debug message of Enhanced Proxy File System" depends on EPFS help Enhanced Proxy File System debug support. diff --git a/fs/epfs/file.c b/fs/epfs/file.c index 5b236150f8b40ed129fcaf9123825f9b80b4fe0c..430cb26737f6efa9fea206582458958959637238 100644 --- a/fs/epfs/file.c +++ b/fs/epfs/file.c @@ -236,7 +236,7 @@ static ssize_t epfs_read(struct file *file, char __user *buf, size_t count, // read directly when epfs range gone; if (IS_ENABLED(CONFIG_EPFS_DEBUG)) epfs_debug( - "read from %llu with len %lu at the end.", + "read from %llu with len %zu at the end.", pos, count); ret = vfs_read(origin_file, buf, count, &pos); break; diff --git a/fs/epfs/super.c b/fs/epfs/super.c index 4d708f855d1fb14185ce242f1d2a54e7326687e7..7368af775c8d77fc091a157d3c4df19bd22de2ce 100644 --- a/fs/epfs/super.c +++ b/fs/epfs/super.c @@ -79,7 +79,7 @@ static int epfs_statfs(struct dentry *dentry, struct kstatfs *buf) struct super_operations epfs_sops = { .alloc_inode = epfs_alloc_inode, .destroy_inode = epfs_destroy_inode, -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0) .free_inode = epfs_free_inode, #endif .evict_inode = epfs_evict_inode,