aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/fs.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/fs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/fs.h b/sys/compat/linuxkpi/common/include/linux/fs.h
index 56de0e3e490a..76a81e676744 100644
--- a/sys/compat/linuxkpi/common/include/linux/fs.h
+++ b/sys/compat/linuxkpi/common/include/linux/fs.h
@@ -264,17 +264,17 @@ get_file(struct linux_file *f)
return (f);
}
-struct linux_file * linux67_get_file_rcu(struct linux_file **f);
+struct linux_file * linux_get_file_rcu(struct linux_file **f);
struct linux_file * get_file_active(struct linux_file **f);
-#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60700
-#define get_file_rcu(f) linux67_get_file_rcu(f)
-#else
+#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION < 60700
static inline bool
get_file_rcu(struct linux_file *f)
{
return (refcount_acquire_if_not_zero(
f->_file == NULL ? &f->f_count : &f->_file->f_count));
}
+#else
+#define get_file_rcu(f) linux_get_file_rcu(f)
#endif
static inline struct inode *