X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fzpl_export.c;fp=module%2Fzfs%2Fzpl_export.c;h=395c5584cce94fe1d837ed495ff8d9eba6eb7507;hb=756c3e5a9ce36461939a8dc421918e1c3a379fa6;hp=f82ee30887fc3a627482b13af0029a9645711410;hpb=ed3fc80048f1d11f0b77382f5c378bb4c11787fd;p=zfs.git diff --git a/module/zfs/zpl_export.c b/module/zfs/zpl_export.c index f82ee30..395c558 100644 --- a/module/zfs/zpl_export.c +++ b/module/zfs/zpl_export.c @@ -30,10 +30,15 @@ static int +#ifdef HAVE_ENCODE_FH_WITH_INODE +zpl_encode_fh(struct inode *ip, __u32 *fh, int *max_len, struct inode *parent) +{ +#else zpl_encode_fh(struct dentry *dentry, __u32 *fh, int *max_len, int connectable) { - fid_t *fid = (fid_t *)fh; struct inode *ip = dentry->d_inode; +#endif /* HAVE_ENCODE_FH_WITH_INODE */ + fid_t *fid = (fid_t *)fh; int len_bytes, rc; len_bytes = *max_len * sizeof (__u32);