Home
last modified time | relevance | path

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

12

/linux-6.15/fs/isofs/
H A Dexport.c163 struct fid *fid, int fh_len, int fh_type) in isofs_fh_to_dentry() argument
167 if (fh_len < 3 || fh_type > 2) in isofs_fh_to_dentry()
175 struct fid *fid, int fh_len, int fh_type) in isofs_fh_to_parent() argument
179 if (fh_len < 2 || fh_type != 2) in isofs_fh_to_parent()
183 fh_len > 3 ? ifid->parent_block : 0, in isofs_fh_to_parent()
185 fh_len > 4 ? ifid->parent_generation : 0); in isofs_fh_to_parent()
/linux-6.15/fs/fat/
H A Dnfs.c149 int fh_len, int fh_type) in fat_fh_to_dentry() argument
151 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in fat_fh_to_dentry()
156 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale() argument
165 if (fh_len < FAT_FID_SIZE_WITHOUT_PARENT) in fat_fh_to_dentry_nostale()
169 if (fh_len < FAT_FID_SIZE_WITH_PARENT) in fat_fh_to_dentry_nostale()
187 int fh_len, int fh_type) in fat_fh_to_parent() argument
189 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in fat_fh_to_parent()
194 struct fid *fh, int fh_len, in fat_fh_to_parent_nostale() argument
201 if (fh_len < FAT_FID_SIZE_WITH_PARENT) in fat_fh_to_parent_nostale()
/linux-6.15/include/linux/
H A Dexportfs.h258 int fh_len, int fh_type);
260 int fh_len, int fh_type);
339 struct fid *fid, int fh_len,
345 int fh_len, int fileid_type, int (*acceptable)(void *, struct dentry *),
354 struct fid *fid, int fh_len, int fh_type,
357 struct fid *fid, int fh_len, int fh_type,
/linux-6.15/fs/notify/fanotify/
H A Dfanotify.c387 int fh_len; in fanotify_encode_fh_len() local
393 fh_len = dwords << 2; in fanotify_encode_fh_len()
403 return fh_len; in fanotify_encode_fh_len()
438 if (fh_len < 4 || WARN_ON_ONCE(fh_len % 4) || fh_len > MAX_HANDLE_SZ) in fanotify_encode_fh()
445 ext_buf = kmalloc(fh_len, gfp); in fanotify_encode_fh()
454 dwords = fh_len >> 2; in fanotify_encode_fh()
461 fh->len = fh_len; in fanotify_encode_fh()
471 return FANOTIFY_FH_HDR_LEN + fh_len; in fanotify_encode_fh()
475 type, fh_len, err); in fanotify_encode_fh()
712 int fh_len; in fanotify_alloc_error_event() local
[all …]
H A Dfanotify_user.c132 int info_len = fh_len; in fanotify_fid_info_len()
163 int fh_len; in fanotify_event_len() local
461 size_t fh_len = fh ? fh->len : 0; in copy_fid_info_to_user() local
503 handle.handle_bytes = fh_len; in copy_fid_info_to_user()
506 if (!fh_len) in copy_fid_info_to_user()
514 if (WARN_ON_ONCE(len < fh_len)) in copy_fid_info_to_user()
522 if (fh_len <= FANOTIFY_INLINE_FH_LEN) { in copy_fid_info_to_user()
523 memcpy(bounce, fh_buf, fh_len); in copy_fid_info_to_user()
526 if (copy_to_user(buf, fh_buf, fh_len)) in copy_fid_info_to_user()
529 buf += fh_len; in copy_fid_info_to_user()
[all …]
/linux-6.15/fs/efs/
H A Dnamei.c97 int fh_len, int fh_type) in efs_fh_to_dentry() argument
99 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in efs_fh_to_dentry()
104 int fh_len, int fh_type) in efs_fh_to_parent() argument
106 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in efs_fh_to_parent()
H A Defs.h138 int fh_len, int fh_type);
140 int fh_len, int fh_type);
/linux-6.15/fs/btrfs/
H A Dexport.c101 int fh_len, int fh_type) in btrfs_fh_to_parent() argument
108 if (fh_len < BTRFS_FID_SIZE_CONNECTABLE) in btrfs_fh_to_parent()
112 if (fh_len < BTRFS_FID_SIZE_CONNECTABLE_ROOT) in btrfs_fh_to_parent()
125 int fh_len, int fh_type) in btrfs_fh_to_dentry() argument
132 fh_len < BTRFS_FID_SIZE_CONNECTABLE) && in btrfs_fh_to_dentry()
134 fh_len < BTRFS_FID_SIZE_CONNECTABLE_ROOT) && in btrfs_fh_to_dentry()
136 fh_len < BTRFS_FID_SIZE_NON_CONNECTABLE)) in btrfs_fh_to_dentry()
/linux-6.15/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-6.15/fs/xfs/
H A Dxfs_export.c173 int fh_len, int fileid_type) in xfs_fs_fh_to_dentry() argument
178 if (fh_len < xfs_fileid_length(fileid_type)) in xfs_fs_fh_to_dentry()
197 int fh_len, int fileid_type) in xfs_fs_fh_to_parent() argument
202 if (fh_len < xfs_fileid_length(fileid_type)) in xfs_fs_fh_to_parent()
/linux-6.15/fs/gfs2/
H A Dexport.c145 int fh_len, int fh_type) in gfs2_fh_to_dentry() argument
154 if (fh_len < GFS2_SMALL_FH_SIZE) in gfs2_fh_to_dentry()
167 int fh_len, int fh_type) in gfs2_fh_to_parent() argument
175 if (fh_len < GFS2_LARGE_FH_SIZE) in gfs2_fh_to_parent()
/linux-6.15/fs/kernfs/
H A Dmount.c83 struct fid *fid, int fh_len, in __kernfs_fh_to_dentry() argument
91 if (fh_len < 2) in __kernfs_fh_to_dentry()
132 struct fid *fid, int fh_len, in kernfs_fh_to_dentry() argument
135 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, false); in kernfs_fh_to_dentry()
139 struct fid *fid, int fh_len, in kernfs_fh_to_parent() argument
142 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, true); in kernfs_fh_to_parent()
/linux-6.15/fs/nfsd/
H A Dflexfilelayoutxdr.c23 int len, mirror_len, ds_len, fh_len; in nfsd4_ff_encode_layoutget() local
33 fh_len = 4 + fl->fh.size; in nfsd4_ff_encode_layoutget()
39 ds_len = 20 + sizeof(stateid_opaque_t) + 4 + fh_len + in nfsd4_ff_encode_layoutget()
/linux-6.15/fs/jfs/
H A Djfs_inode.h26 int fh_len, int fh_type);
28 int fh_len, int fh_type);
/linux-6.15/fs/ocfs2/
H A Dexport.c251 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_dentry() argument
255 if (fh_len < 3 || fh_type > 2) in ocfs2_fh_to_dentry()
265 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_parent() argument
269 if (fh_type != 2 || fh_len < 6) in ocfs2_fh_to_parent()
/linux-6.15/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-6.15/fs/exportfs/
H A Dexpfs.c437 exportfs_decode_fh_raw(struct vfsmount *mnt, struct fid *fid, int fh_len, in exportfs_decode_fh_raw() argument
455 result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type); in exportfs_decode_fh_raw()
522 fh_len, fileid_type); in exportfs_decode_fh_raw()
594 int fh_len, int fileid_type, in exportfs_decode_fh() argument
600 ret = exportfs_decode_fh_raw(mnt, fid, fh_len, fileid_type, 0, in exportfs_decode_fh()
/linux-6.15/fs/nfs/
H A Dexport.c65 int fh_len, int fh_type) in nfs_fh_to_dentry() argument
78 if (fh_len < len || fh_type != len) in nfs_fh_to_dentry()
/linux-6.15/fs/befs/
H A Dlinuxvfs.c61 struct fid *fid, int fh_len, int fh_type);
63 struct fid *fid, int fh_len, int fh_type);
647 struct fid *fid, int fh_len, int fh_type) in befs_fh_to_dentry() argument
649 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in befs_fh_to_dentry()
657 struct fid *fid, int fh_len, int fh_type) in befs_fh_to_parent() argument
659 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in befs_fh_to_parent()
/linux-6.15/fs/nilfs2/
H A Dnamei.c505 int fh_len, int fh_type) in nilfs_fh_to_dentry() argument
509 if (fh_len < NILFS_FID_SIZE_NON_CONNECTABLE || in nilfs_fh_to_dentry()
518 int fh_len, int fh_type) in nilfs_fh_to_parent() argument
522 if (fh_len < NILFS_FID_SIZE_CONNECTABLE || in nilfs_fh_to_parent()
/linux-6.15/fs/affs/
H A Dnamei.c554 int fh_len, int fh_type) in affs_fh_to_dentry() argument
556 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in affs_fh_to_dentry()
561 int fh_len, int fh_type) in affs_fh_to_parent() argument
563 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in affs_fh_to_parent()
/linux-6.15/fs/overlayfs/
H A Dexport.c797 int fh_len, int fh_type) in ovl_fh_to_dentry() argument
801 int len = fh_len << 2; in ovl_fh_to_dentry()
831 fh_len, fh_type, flags, err); in ovl_fh_to_dentry()
837 int fh_len, int fh_type) in ovl_fh_to_parent() argument
/linux-6.15/fs/ceph/
H A Dexport.c298 int fh_len, int fh_type) in ceph_fh_to_dentry() argument
311 if (fh_len < sizeof(*fh) / 4) in ceph_fh_to_dentry()
417 int fh_len, int fh_type) in ceph_fh_to_parent() argument
430 if (fh_len < sizeof(*cfh) / 4) in ceph_fh_to_parent()
/linux-6.15/fs/erofs/
H A Dsuper.c520 struct fid *fid, int fh_len, int fh_type) in erofs_fh_to_dentry() argument
522 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in erofs_fh_to_dentry()
527 struct fid *fid, int fh_len, int fh_type) in erofs_fh_to_parent() argument
529 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in erofs_fh_to_parent()
/linux-6.15/fs/udf/
H A Dnamei.c955 struct fid *fid, int fh_len, int fh_type) in udf_fh_to_dentry() argument
957 if (fh_len < 3 || in udf_fh_to_dentry()
967 struct fid *fid, int fh_len, int fh_type) in udf_fh_to_parent() argument
969 if (fh_len < 5 || fh_type != FILEID_UDF_WITH_PARENT) in udf_fh_to_parent()

12