Home
last modified time | relevance | path

Searched refs:fh_len (Results 1 – 20 of 20) sorted by relevance

/linux/fs/isofs/
H A Dexport.c171 struct fid *fid, int fh_len, int fh_type) in isofs_fh_to_dentry() argument
175 if (fh_len < 3 || fh_type > 2) in isofs_fh_to_dentry()
183 struct fid *fid, int fh_len, int fh_type) in isofs_fh_to_parent() argument
187 if (fh_len < 2 || fh_type != 2) in isofs_fh_to_parent()
191 fh_len > 3 ? ifid->parent_block : 0, in isofs_fh_to_parent()
193 fh_len > 4 ? ifid->parent_generation : 0); in isofs_fh_to_parent()
/linux/fs/notify/fanotify/
H A Dfanotify.c385 int fh_len; in fanotify_encode_fh_len() local
391 fh_len = dwords << 2; in fanotify_encode_fh_len()
398 if (WARN_ON_ONCE(fh_len > MAX_HANDLE_SZ)) in fanotify_encode_fh_len()
401 return fh_len; in fanotify_encode_fh_len()
411 unsigned int fh_len, unsigned int *hash, in fanotify_encode_fh() argument
436 if (fh_len < 4 || WARN_ON_ONCE(fh_len % 4) || fh_len > MAX_HANDLE_SZ) in fanotify_encode_fh()
440 if (gfp && fh_len > FANOTIFY_INLINE_FH_LEN) { in fanotify_encode_fh()
443 ext_buf = kmalloc(fh_len, gfp); in fanotify_encode_fh()
452 dwords = fh_len >> 2; in fanotify_encode_fh()
461 if (type <= 0 || type >= FILEID_INVALID || fh_len != dwords << 2) in fanotify_encode_fh()
[all …]
H A Dfanotify_user.c230 static int fanotify_fid_info_len(int fh_len, int name_len) in fanotify_fid_info_len() argument
232 int info_len = fh_len; in fanotify_fid_info_len()
263 int fh_len; in fanotify_event_len() local
281 fh_len = fanotify_event_object_fh_len(event); in fanotify_event_len()
282 event_len += fanotify_fid_info_len(fh_len, dot_len); in fanotify_event_len()
561 size_t fh_len = fh ? fh->len : 0; in copy_fid_info_to_user() local
562 size_t info_len = fanotify_fid_info_len(fh_len, name_len); in copy_fid_info_to_user()
566 __func__, fh_len, name_len, info_len, count); in copy_fid_info_to_user()
603 handle.handle_bytes = fh_len; in copy_fid_info_to_user()
606 if (!fh_len) in copy_fid_info_to_user()
[all …]
/linux/fs/btrfs/
H A Dexport.c107 int fh_len, int fh_type) in btrfs_fh_to_parent() argument
114 if (fh_len < BTRFS_FID_SIZE_CONNECTABLE) in btrfs_fh_to_parent()
118 if (fh_len < BTRFS_FID_SIZE_CONNECTABLE_ROOT) in btrfs_fh_to_parent()
131 int fh_len, int fh_type) in btrfs_fh_to_dentry() argument
138 fh_len < BTRFS_FID_SIZE_CONNECTABLE) && in btrfs_fh_to_dentry()
140 fh_len < BTRFS_FID_SIZE_CONNECTABLE_ROOT) && in btrfs_fh_to_dentry()
142 fh_len < BTRFS_FID_SIZE_NON_CONNECTABLE)) in btrfs_fh_to_dentry()
/linux/fs/squashfs/
H A Dexport.c83 struct fid *fid, int fh_len, int fh_type) in squashfs_fh_to_dentry() argument
86 || fh_len < 2) in squashfs_fh_to_dentry()
94 struct fid *fid, int fh_len, int fh_type) in squashfs_fh_to_parent() argument
96 if (fh_type != FILEID_INO32_GEN_PARENT || fh_len < 4) in squashfs_fh_to_parent()
/linux/fs/kernfs/
H A Dmount.c98 struct fid *fid, int fh_len, in __kernfs_fh_to_dentry() argument
106 if (fh_len < 2) in __kernfs_fh_to_dentry()
147 struct fid *fid, int fh_len, in kernfs_fh_to_dentry() argument
150 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, false); in kernfs_fh_to_dentry()
154 struct fid *fid, int fh_len, in kernfs_fh_to_parent() argument
157 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, true); in kernfs_fh_to_parent()
/linux/fs/nfsd/
H A Dflexfilelayoutxdr.c23 int len, mirror_len, ds_len, fh_len; in nfsd4_ff_encode_layoutget() local
33 fh_len = 4 + xdr_align_size(fl->fh.size); in nfsd4_ff_encode_layoutget()
41 ds_len = 16 + 4 + 4 + sizeof(stateid_opaque_t) + 4 + fh_len + in nfsd4_ff_encode_layoutget()
/linux/fs/jfs/
H A Djfs_inode.h26 int fh_len, int fh_type);
28 int fh_len, int fh_type);
/linux/fs/jffs2/
H A Dsuper.c123 int fh_len, int fh_type) in jffs2_fh_to_dentry() argument
125 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in jffs2_fh_to_dentry()
130 int fh_len, int fh_type) in jffs2_fh_to_parent() argument
132 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in jffs2_fh_to_parent()
/linux/fs/ceph/
H A Dexport.c303 int fh_len, int fh_type) in ceph_fh_to_dentry() argument
316 if (fh_len < sizeof(*fh) / BYTES_PER_U32) in ceph_fh_to_dentry()
422 int fh_len, int fh_type) in ceph_fh_to_parent() argument
435 if (fh_len < sizeof(*cfh) / BYTES_PER_U32) in ceph_fh_to_parent()
/linux/fs/erofs/
H A Dsuper.c597 struct fid *fid, int fh_len, int fh_type) in erofs_fh_to_dentry() argument
600 fh_type != FILEID_INO64_GEN_PARENT) || fh_len < 3) in erofs_fh_to_dentry()
608 struct fid *fid, int fh_len, int fh_type) in erofs_fh_to_parent() argument
610 if (fh_type != FILEID_INO64_GEN_PARENT || fh_len < 6) in erofs_fh_to_parent()
/linux/fs/orangefs/
H A Dsuper.c316 int fh_len, in orangefs_fh_to_dentry() argument
321 if (fh_len < 5 || fh_type > 2) in orangefs_fh_to_dentry()
/linux/fs/overlayfs/
H A Doverlayfs.h720 static inline int ovl_check_fh_len(struct ovl_fh *fh, int fh_len) in ovl_check_fh_len() argument
722 if (fh_len < sizeof(struct ovl_fh)) in ovl_check_fh_len()
725 return ovl_check_fb_len(&fh->fb, fh_len - OVL_FH_WIRE_OFFSET); in ovl_check_fh_len()
/linux/fs/ntfs/
H A Dnamei.c1657 int fh_len, int fh_type) in ntfs_fh_to_dentry() argument
1659 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in ntfs_fh_to_dentry()
1664 int fh_len, int fh_type) in ntfs_fh_to_parent() argument
1666 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in ntfs_fh_to_parent()
/linux/fs/ufs/
H A Dsuper.c118 int fh_len, int fh_type) in ufs_fh_to_dentry() argument
120 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_dentry()
124 int fh_len, int fh_type) in ufs_fh_to_parent() argument
126 return generic_fh_to_parent(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_parent()
/linux/fs/ntfs3/
H A Dsuper.c906 int fh_len, int fh_type) in ntfs_fh_to_dentry() argument
908 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in ntfs_fh_to_dentry()
913 int fh_len, int fh_type) in ntfs_fh_to_parent() argument
915 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in ntfs_fh_to_parent()
/linux/fs/
H A Dpidfs.c918 struct fid *fid, int fh_len, in pidfs_fh_to_dentry() argument
926 if (fh_len < 2) in pidfs_fh_to_dentry()
/linux/fs/f2fs/
H A Dsuper.c3854 int fh_len, int fh_type) in f2fs_fh_to_dentry() argument
3856 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in f2fs_fh_to_dentry()
3861 int fh_len, int fh_type) in f2fs_fh_to_parent() argument
3863 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in f2fs_fh_to_parent()
/linux/fs/ext4/
H A Dsuper.c1601 int fh_len, int fh_type) in ext4_fh_to_dentry() argument
1603 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in ext4_fh_to_dentry()
1608 int fh_len, int fh_type) in ext4_fh_to_parent() argument
1610 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in ext4_fh_to_parent()
/linux/mm/
H A Dshmem.c4386 struct fid *fid, int fh_len, int fh_type) in shmem_fh_to_dentry()
4392 if (fh_len < 3) in shmem_fh_to_dentry()
4383 shmem_fh_to_dentry(struct super_block * sb,struct fid * fid,int fh_len,int fh_type) shmem_fh_to_dentry() argument