Home
last modified time | relevance | path

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

12

/fs/notify/fanotify/
Dfanotify.h41 unsigned int fh_len) in fanotify_fid_fh() argument
43 return fh_len <= FANOTIFY_INLINE_FH_LEN ? fid->fh : fid->ext_fh; in fanotify_fid_fh()
48 unsigned int fh_len) in fanotify_fid_equal() argument
52 !memcmp(fanotify_fid_fh(fid1, fh_len), in fanotify_fid_equal()
53 fanotify_fid_fh(fid2, fh_len), fh_len); in fanotify_fid_equal()
71 u8 fh_len; member
103 event->fh_len > FANOTIFY_INLINE_FH_LEN; in fanotify_event_has_ext_fh()
108 return fanotify_fid_fh(&event->fid, event->fh_len); in fanotify_event_fh()
Dfanotify.c30 old->fh_type != new->fh_type || old->fh_len != new->fh_len) in should_merge()
46 fanotify_fid_equal(&old->fid, &new->fid, old->fh_len); in should_merge()
244 event->fh_len = bytes; in fanotify_encode_fid()
254 event->fh_len = 0; in fanotify_encode_fid()
323 event->fh_len = 0; in fanotify_alloc_event()
Dfanotify_user.c60 sizeof(struct file_handle) + event->fh_len, in fanotify_event_info_len()
212 size_t fh_len = event->fh_len; in copy_fid_to_user() local
218 if (WARN_ON_ONCE(len < sizeof(info) + sizeof(handle) + fh_len)) in copy_fid_to_user()
231 handle.handle_bytes = fh_len; in copy_fid_to_user()
242 if (fh_len <= FANOTIFY_INLINE_FH_LEN) { in copy_fid_to_user()
243 memcpy(bounce, fh, fh_len); in copy_fid_to_user()
246 if (copy_to_user(buf, fh, fh_len)) in copy_fid_to_user()
250 buf += fh_len; in copy_fid_to_user()
251 len -= fh_len; in copy_fid_to_user()
/fs/fat/
Dnfs.c143 int fh_len, int fh_type) in fat_fh_to_dentry() argument
145 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in fat_fh_to_dentry()
150 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale() argument
159 if (fh_len < FAT_FID_SIZE_WITHOUT_PARENT) in fat_fh_to_dentry_nostale()
163 if (fh_len < FAT_FID_SIZE_WITH_PARENT) in fat_fh_to_dentry_nostale()
181 int fh_len, int fh_type) in fat_fh_to_parent() argument
183 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in fat_fh_to_parent()
188 struct fid *fh, int fh_len, in fat_fh_to_parent_nostale() argument
195 if (fh_len < FAT_FID_SIZE_WITH_PARENT) in fat_fh_to_parent_nostale()
/fs/isofs/
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 > 2 ? ifid->parent_block : 0, in isofs_fh_to_parent()
185 fh_len > 4 ? ifid->parent_generation : 0); in isofs_fh_to_parent()
/fs/squashfs/
Dexport.c78 struct fid *fid, int fh_len, int fh_type) in squashfs_fh_to_dentry() argument
81 || fh_len < 2) in squashfs_fh_to_dentry()
89 struct fid *fid, int fh_len, int fh_type) in squashfs_fh_to_parent() argument
91 if (fh_type != FILEID_INO32_GEN_PARENT || fh_len < 4) in squashfs_fh_to_parent()
/fs/btrfs/
Dexport.c110 int fh_len, int fh_type) in btrfs_fh_to_parent() argument
117 if (fh_len < BTRFS_FID_SIZE_CONNECTABLE) in btrfs_fh_to_parent()
121 if (fh_len < BTRFS_FID_SIZE_CONNECTABLE_ROOT) in btrfs_fh_to_parent()
134 int fh_len, int fh_type) in btrfs_fh_to_dentry() argument
141 fh_len < BTRFS_FID_SIZE_CONNECTABLE) && in btrfs_fh_to_dentry()
143 fh_len < BTRFS_FID_SIZE_CONNECTABLE_ROOT) && in btrfs_fh_to_dentry()
145 fh_len < BTRFS_FID_SIZE_NON_CONNECTABLE)) in btrfs_fh_to_dentry()
/fs/efs/
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()
Defs.h141 int fh_len, int fh_type);
143 int fh_len, int fh_type);
/fs/xfs/
Dxfs_export.c160 int fh_len, int fileid_type) in xfs_fs_fh_to_dentry() argument
165 if (fh_len < xfs_fileid_length(fileid_type)) in xfs_fs_fh_to_dentry()
184 int fh_len, int fileid_type) in xfs_fs_fh_to_parent() argument
189 if (fh_len < xfs_fileid_length(fileid_type)) in xfs_fs_fh_to_parent()
/fs/gfs2/
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()
/fs/ocfs2/
Dexport.c253 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_dentry() argument
257 if (fh_len < 3 || fh_type > 2) in ocfs2_fh_to_dentry()
267 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_parent() argument
271 if (fh_type != 2 || fh_len < 6) in ocfs2_fh_to_parent()
/fs/nfsd/
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()
/fs/ntfs/
Dnamei.c354 int fh_len, int fh_type) in ntfs_fh_to_dentry() argument
356 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in ntfs_fh_to_dentry()
361 int fh_len, int fh_type) in ntfs_fh_to_parent() argument
363 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in ntfs_fh_to_parent()
/fs/jfs/
Djfs_inode.h24 int fh_len, int fh_type);
26 int fh_len, int fh_type);
/fs/jffs2/
Dsuper.c122 int fh_len, int fh_type) in jffs2_fh_to_dentry() argument
124 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in jffs2_fh_to_dentry()
129 int fh_len, int fh_type) in jffs2_fh_to_parent() argument
131 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in jffs2_fh_to_parent()
/fs/kernfs/
Dmount.c102 int fh_len, int fh_type) in kernfs_fh_to_dentry() argument
104 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in kernfs_fh_to_dentry()
109 int fh_len, int fh_type) in kernfs_fh_to_parent() argument
111 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in kernfs_fh_to_parent()
/fs/befs/
Dlinuxvfs.c61 struct fid *fid, int fh_len, int fh_type);
63 struct fid *fid, int fh_len, int fh_type);
650 struct fid *fid, int fh_len, int fh_type) in befs_fh_to_dentry() argument
652 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in befs_fh_to_dentry()
660 struct fid *fid, int fh_len, int fh_type) in befs_fh_to_parent() argument
662 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in befs_fh_to_parent()
/fs/nfs/
Dexport.c65 int fh_len, int fh_type) in nfs_fh_to_dentry() argument
79 if (fh_len < len || fh_type != len) in nfs_fh_to_dentry()
/fs/affs/
Dnamei.c552 int fh_len, int fh_type) in affs_fh_to_dentry() argument
554 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in affs_fh_to_dentry()
559 int fh_len, int fh_type) in affs_fh_to_parent() argument
561 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in affs_fh_to_parent()
/fs/nilfs2/
Dnamei.c482 int fh_len, int fh_type) in nilfs_fh_to_dentry() argument
486 if (fh_len < NILFS_FID_SIZE_NON_CONNECTABLE || in nilfs_fh_to_dentry()
495 int fh_len, int fh_type) in nilfs_fh_to_parent() argument
499 if (fh_len < NILFS_FID_SIZE_CONNECTABLE || in nilfs_fh_to_parent()
/fs/ceph/
Dexport.c268 int fh_len, int fh_type) in ceph_fh_to_dentry() argument
280 if (fh_len < sizeof(*fh) / 4) in ceph_fh_to_dentry()
380 int fh_len, int fh_type) in ceph_fh_to_parent() argument
392 if (fh_len < sizeof(*cfh) / 4) in ceph_fh_to_parent()
/fs/exportfs/
Dexpfs.c421 int fh_len, int fileid_type, in exportfs_decode_fh() argument
434 result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type); in exportfs_decode_fh()
498 fh_len, fileid_type); in exportfs_decode_fh()
/fs/
Dlibfs.c929 int fh_len, int fh_type, struct inode *(*get_inode) in generic_fh_to_dentry() argument
934 if (fh_len < 2) in generic_fh_to_dentry()
962 int fh_len, int fh_type, struct inode *(*get_inode) in generic_fh_to_parent() argument
967 if (fh_len <= 2) in generic_fh_to_parent()
973 (fh_len > 3 ? fid->i32.parent_gen : 0)); in generic_fh_to_parent()
/fs/overlayfs/
Dexport.c781 int fh_len, int fh_type) in ovl_fh_to_dentry() argument
785 int len = fh_len << 2; in ovl_fh_to_dentry()
814 int fh_len, int fh_type) in ovl_fh_to_parent() argument

12