git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mzap_upgrade() must use kmem_alloc()
[zfs.git]
/
module
/
zfs
/
zpl_export.c
diff --git
a/module/zfs/zpl_export.c
b/module/zfs/zpl_export.c
index
f82ee30
..
395c558
100644
(file)
--- a/
module/zfs/zpl_export.c
+++ b/
module/zfs/zpl_export.c
@@
-30,10
+30,15
@@
static int
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)
{
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;
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);
int len_bytes, rc;
len_bytes = *max_len * sizeof (__u32);