* 2 -- contains child file handle and parent file handle;
* 255 -- error.
*/
-#ifndef HAVE_ENCODE_FH_PARENT
-static int ll_encode_fh(struct dentry *de, u32 *fh, int *plen,
- int connectable)
-{
- struct inode *inode = de->d_inode;
- struct inode *parent = de->d_parent->d_inode;
-#else
static int ll_encode_fh(struct inode *inode, u32 *fh, int *plen,
struct inode *parent)
{
-#endif
int fileid_len = sizeof(struct lustre_file_handle) / 4;
struct lustre_file_handle *lfh = (void *)fh;