X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Flinux%2Flinux-fs.h;fp=libcfs%2Finclude%2Flibcfs%2Flinux%2Flinux-fs.h;h=78a75c7f1a4af678329fd212b151086cc531b569;hp=a5beff213c6581bf0c1cadd0524cb1fba8852b51;hb=13cd0f9f667c6e138a8cb235d4920f8b749cb154;hpb=f23ac22c4c79750fed6b05ddbe460bfc9b0f0ea5 diff --git a/libcfs/include/libcfs/linux/linux-fs.h b/libcfs/include/libcfs/linux/linux-fs.h index a5beff2..78a75c7 100644 --- a/libcfs/include/libcfs/linux/linux-fs.h +++ b/libcfs/include/libcfs/linux/linux-fs.h @@ -60,4 +60,21 @@ static inline struct dentry *file_dentry(const struct file *file) #define DTTOIF(dirtype) ((dirtype) << S_DT_SHIFT) #endif +#ifdef HAVE_PROC_OPS +#define PROC_OWNER(_fn) +#else +#define proc_ops file_operations +#define PROC_OWNER(_owner) .owner = (_owner), +#define proc_open open +#define proc_read read +#define proc_write write +#define proc_lseek llseek +#define proc_release release +#define proc_poll poll +#define proc_ioctl unlocked_ioctl +#define proc_compat_ioctl compat_ioctl +#define proc_mmap mmap +#define proc_get_unmapped_area get_unmapped_area +#endif + #endif