X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_compat25.h;h=0366fffc6454a6ec1efc411e608fb2da4833d361;hb=refs%2Fchanges%2F27%2F7727%2F4;hp=cd79e6e5d486418288568d5b21df7c59d80fdfb6;hpb=b45438f9695955f70fa5cd7a2c4c08ec8c8e86ce;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index cd79e6e..0366fff 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -393,4 +393,10 @@ static inline struct dentry *d_make_root(struct inode *root) # define ll_dirty_inode(inode, flag) (inode)->i_sb->s_op->dirty_inode((inode)) #endif +#ifdef HAVE_FILE_F_INODE +# define set_file_inode(file, inode) (file)->f_inode = inode +#else +# define set_file_inode(file, inode) +#endif + #endif /* _COMPAT25_H */