*max_len = connected_handle_length;
type = 2;
} else if (*max_len >= handle_length) {
- if (connectable)
+ if (connectable) {
+ *max_len = connected_handle_length;
return 255;
+ }
dout("encode_fh %p\n", dentry);
fh->ino = ceph_ino(dentry->d_inode);
*max_len = handle_length;
type = 1;
} else {
+ *max_len = handle_length;
return 255;
}
return type;