Lines Matching refs:fh_len
378 int fh_len;
384 fh_len = dwords << 2;
391 if (WARN_ON_ONCE(fh_len > MAX_HANDLE_SZ))
394 return fh_len;
404 unsigned int fh_len, unsigned int *hash,
425 * !gpf means preallocated variable size fh, but fh_len could
429 if (fh_len < 4 || WARN_ON_ONCE(fh_len % 4) || fh_len > MAX_HANDLE_SZ)
433 if (gfp && fh_len > FANOTIFY_INLINE_FH_LEN) {
436 ext_buf = kmalloc(fh_len, gfp);
445 dwords = fh_len >> 2;
448 if (type <= 0 || type == FILEID_INVALID || fh_len != dwords << 2)
452 fh->len = fh_len;
462 return FANOTIFY_FH_HDR_LEN + fh_len;
466 type, fh_len, err);
682 int fh_len;
697 fh_len = fanotify_encode_fh_len(inode);
699 /* Bad fh_len. Fallback to using an invalid fh. Should never happen. */
700 if (!fh_len && inode)
703 fanotify_encode_fh(&fee->object_fh, inode, fh_len, NULL, 0);