+ /* For encrypted file, we want to limit number of hard links to what
+ * linkEA can contain. So ask to return error in case of overflow.
+ * Currently linkEA stores 4KiB of links, that is 14 NAME_MAX links,
+ * or 119 16-byte names.
+ */
+ return linkea_add_buf(ldata, lname, pfid,
+ cattr->la_valid & LA_FLAGS &&
+ cattr->la_flags & LUSTRE_ENCRYPT_FL);