/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify.c | 38 static unsigned int fanotify_hash_fsid(__kernel_fsid_t *fsid) in fanotify_hash_fsid() argument 40 return hash_32(fsid->val[0], FANOTIFY_EVENT_HASH_BITS) ^ in fanotify_hash_fsid() 41 hash_32(fsid->val[1], FANOTIFY_EVENT_HASH_BITS); in fanotify_hash_fsid() 71 return fanotify_fsid_equal(&ffe1->fsid, &ffe2->fsid) && in fanotify_fid_event_equal() 120 if (!fanotify_fsid_equal(&fne1->fsid, &fne2->fsid)) in fanotify_name_event_equal() 130 if (!fanotify_fsid_equal(&fee1->fsid, &fee2->fsid)) in fanotify_error_event_equal() 578 __kernel_fsid_t *fsid, in fanotify_alloc_fid_event() 577 fanotify_alloc_fid_event(struct inode *id, __kernel_fsid_t *fsid, unsigned int *hash, gfp_t gfp) fanotify_alloc_fid_event() argument 597 fanotify_alloc_name_event(struct inode *dir, __kernel_fsid_t *fsid, const struct qstr *name, struct inode *child, struct dentry *moved, unsigned int *hash, gfp_t gfp) fanotify_alloc_name_event() argument 672 fanotify_alloc_error_event( struct fsnotify_group *group, __kernel_fsid_t *fsid, const void *data, int data_type, unsigned int *hash) fanotify_alloc_error_event() argument 710 fanotify_alloc_event( struct fsnotify_group *group, u32 mask, const void *data, int data_type, struct inode *dir, const struct qstr *file_name, __kernel_fsid_t *fsid, u32 match_mask) fanotify_alloc_event() argument 849 __kernel_fsid_t fsid = {}; fanotify_get_fsid() local 901 __kernel_fsid_t fsid = {}; fanotify_handle_event() local [all...] |
H A D | fanotify_user.c | 413 static int copy_fid_info_to_user(__kernel_fsid_t *fsid, struct fanotify_fh *fh, in copy_fid_info_to_user() argument 453 info.fsid = *fsid; in copy_fid_info_to_user() 1199 __kernel_fsid_t *fsid) in fanotify_add_new_mark() 1224 ret = fsnotify_add_mark_locked(mark, connp, obj_type, 0, fsid); in fanotify_add_new_mark() 1282 __kernel_fsid_t *fsid) in fanotify_add_mark() 1292 fan_flags, fsid); in fanotify_add_mark() 1330 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_vfsmount_mark() 1333 FSNOTIFY_OBJ_TYPE_VFSMOUNT, mask, flags, fsid); in fanotify_add_vfsmount_mark() 1338 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_sb_mark() 1195 fanotify_add_new_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, unsigned int obj_type, unsigned int fan_flags, __kernel_fsid_t *fsid) fanotify_add_new_mark() argument 1279 fanotify_add_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, unsigned int obj_type, __u32 mask, unsigned int fan_flags, __kernel_fsid_t *fsid) fanotify_add_mark() argument 1328 fanotify_add_vfsmount_mark(struct fsnotify_group *group, struct vfsmount *mnt, __u32 mask, unsigned int flags, __kernel_fsid_t *fsid) fanotify_add_vfsmount_mark() argument 1336 fanotify_add_sb_mark(struct fsnotify_group *group, struct super_block *sb, __u32 mask, unsigned int flags, __kernel_fsid_t *fsid) fanotify_add_sb_mark() argument 1344 fanotify_add_inode_mark(struct fsnotify_group *group, struct inode *inode, __u32 mask, unsigned int flags, __kernel_fsid_t *fsid) fanotify_add_inode_mark() argument 1557 fanotify_test_fsid(struct dentry *dentry, __kernel_fsid_t *fsid) fanotify_test_fsid() argument 1668 __kernel_fsid_t __fsid, *fsid = NULL; do_fanotify_mark() local [all...] |
H A D | fanotify.h | 285 __kernel_fsid_t fsid; member 298 __kernel_fsid_t fsid; member 313 __kernel_fsid_t fsid; /* FSID this error refers to. */ member 327 return &FANOTIFY_FE(event)->fsid; in fanotify_event_fsid() 329 return &FANOTIFY_NE(event)->fsid; in fanotify_event_fsid() 331 return &FANOTIFY_EE(event)->fsid; in fanotify_event_fsid()
|
/kernel/linux/linux-5.10/fs/notify/ |
H A D | mark.c | 478 __kernel_fsid_t *fsid) in fsnotify_attach_connector_to_object() 490 /* Cache fsid of filesystem containing the object */ in fsnotify_attach_connector_to_object() 491 if (fsid) { in fsnotify_attach_connector_to_object() 492 conn->fsid = *fsid; in fsnotify_attach_connector_to_object() 495 conn->fsid.val[0] = conn->fsid.val[1] = 0; in fsnotify_attach_connector_to_object() 549 int allow_dups, __kernel_fsid_t *fsid) in fsnotify_add_mark_list() 559 /* Backend is expected to check for zero fsid (e.g. tmpfs) */ in fsnotify_add_mark_list() 560 if (fsid in fsnotify_add_mark_list() 476 fsnotify_attach_connector_to_object(fsnotify_connp_t *connp, unsigned int type, __kernel_fsid_t *fsid) fsnotify_attach_connector_to_object() argument 547 fsnotify_add_mark_list(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int type, int allow_dups, __kernel_fsid_t *fsid) fsnotify_add_mark_list() argument 640 fsnotify_add_mark_locked(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int type, int allow_dups, __kernel_fsid_t *fsid) fsnotify_add_mark_locked() argument 683 fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int type, int allow_dups, __kernel_fsid_t *fsid) fsnotify_add_mark() argument [all...] |
/kernel/linux/linux-6.6/fs/notify/ |
H A D | mark.c | 541 __kernel_fsid_t *fsid) in fsnotify_attach_connector_to_object() 553 /* Cache fsid of filesystem containing the object */ in fsnotify_attach_connector_to_object() 554 if (fsid) { in fsnotify_attach_connector_to_object() 555 conn->fsid = *fsid; in fsnotify_attach_connector_to_object() 558 conn->fsid.val[0] = conn->fsid.val[1] = 0; in fsnotify_attach_connector_to_object() 612 int add_flags, __kernel_fsid_t *fsid) in fsnotify_add_mark_list() 622 /* Backend is expected to check for zero fsid (e.g. tmpfs) */ in fsnotify_add_mark_list() 623 if (fsid in fsnotify_add_mark_list() 539 fsnotify_attach_connector_to_object(fsnotify_connp_t *connp, unsigned int obj_type, __kernel_fsid_t *fsid) fsnotify_attach_connector_to_object() argument 609 fsnotify_add_mark_list(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int obj_type, int add_flags, __kernel_fsid_t *fsid) fsnotify_add_mark_list() argument 704 fsnotify_add_mark_locked(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int obj_type, int add_flags, __kernel_fsid_t *fsid) fsnotify_add_mark_locked() argument 744 fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int obj_type, int add_flags, __kernel_fsid_t *fsid) fsnotify_add_mark() argument [all...] |
/kernel/linux/linux-5.10/fs/orangefs/ |
H A D | orangefs-utils.c | 16 __s32 fsid = ORANGEFS_FS_ID_NULL; in fsid_of_op() local 21 fsid = op->upcall.req.io.refn.fs_id; in fsid_of_op() 24 fsid = op->upcall.req.lookup.parent_refn.fs_id; in fsid_of_op() 27 fsid = op->upcall.req.create.parent_refn.fs_id; in fsid_of_op() 30 fsid = op->upcall.req.getattr.refn.fs_id; in fsid_of_op() 33 fsid = op->upcall.req.remove.parent_refn.fs_id; in fsid_of_op() 36 fsid = op->upcall.req.mkdir.parent_refn.fs_id; in fsid_of_op() 39 fsid = op->upcall.req.readdir.refn.fs_id; in fsid_of_op() 42 fsid = op->upcall.req.setattr.refn.fs_id; in fsid_of_op() 45 fsid in fsid_of_op() [all...] |
H A D | devorangefs-req.c | 105 static int fs_mount_pending(__s32 fsid) in fs_mount_pending() argument 112 if (orangefs_sb->fs_id == fsid) { in fs_mount_pending() 193 __s32 fsid; in orangefs_devreq_read() local 201 fsid = fsid_of_op(op); in orangefs_devreq_read() 202 if (fsid != ORANGEFS_FS_ID_NULL) { in orangefs_devreq_read() 205 ret = fs_mount_pending(fsid); in orangefs_devreq_read() 235 fsid); in orangefs_devreq_read()
|
/kernel/linux/linux-6.6/fs/orangefs/ |
H A D | orangefs-utils.c | 16 __s32 fsid = ORANGEFS_FS_ID_NULL; in fsid_of_op() local 21 fsid = op->upcall.req.io.refn.fs_id; in fsid_of_op() 24 fsid = op->upcall.req.lookup.parent_refn.fs_id; in fsid_of_op() 27 fsid = op->upcall.req.create.parent_refn.fs_id; in fsid_of_op() 30 fsid = op->upcall.req.getattr.refn.fs_id; in fsid_of_op() 33 fsid = op->upcall.req.remove.parent_refn.fs_id; in fsid_of_op() 36 fsid = op->upcall.req.mkdir.parent_refn.fs_id; in fsid_of_op() 39 fsid = op->upcall.req.readdir.refn.fs_id; in fsid_of_op() 42 fsid = op->upcall.req.setattr.refn.fs_id; in fsid_of_op() 45 fsid in fsid_of_op() [all...] |
H A D | devorangefs-req.c | 105 static int fs_mount_pending(__s32 fsid) in fs_mount_pending() argument 112 if (orangefs_sb->fs_id == fsid) { in fs_mount_pending() 193 __s32 fsid; in orangefs_devreq_read() local 201 fsid = fsid_of_op(op); in orangefs_devreq_read() 202 if (fsid != ORANGEFS_FS_ID_NULL) { in orangefs_devreq_read() 205 ret = fs_mount_pending(fsid); in orangefs_devreq_read() 235 fsid); in orangefs_devreq_read()
|
/kernel/linux/linux-5.10/fs/notify/fanotify/ |
H A D | fanotify.c | 48 return fanotify_fsid_equal(&ffe1->fsid, &ffe2->fsid) && in fanotify_fid_event_equal() 85 if (!fanotify_fsid_equal(&fne1->fsid, &fne2->fsid)) in fanotify_name_event_equal() 468 __kernel_fsid_t *fsid, in fanotify_alloc_fid_event() 478 ffe->fsid = *fsid; in fanotify_alloc_fid_event() 486 __kernel_fsid_t *fsid, in fanotify_alloc_name_event() 508 fne->fsid = *fsid; in fanotify_alloc_name_event() 467 fanotify_alloc_fid_event(struct inode *id, __kernel_fsid_t *fsid, gfp_t gfp) fanotify_alloc_fid_event() argument 485 fanotify_alloc_name_event(struct inode *id, __kernel_fsid_t *fsid, const struct qstr *file_name, struct inode *child, gfp_t gfp) fanotify_alloc_name_event() argument 527 fanotify_alloc_event(struct fsnotify_group *group, u32 mask, const void *data, int data_type, struct inode *dir, const struct qstr *file_name, __kernel_fsid_t *fsid) fanotify_alloc_event() argument 629 __kernel_fsid_t fsid = {}; fanotify_get_fsid() local 663 __kernel_fsid_t fsid = {}; fanotify_handle_event() local [all...] |
H A D | fanotify_user.c | 228 static int copy_info_to_user(__kernel_fsid_t *fsid, struct fanotify_fh *fh, in copy_info_to_user() argument 268 info.fsid = *fsid; in copy_info_to_user() 823 __kernel_fsid_t *fsid) in fanotify_add_new_mark() 836 ret = fsnotify_add_mark_locked(mark, connp, type, 0, fsid); in fanotify_add_new_mark() 849 __kernel_fsid_t *fsid) in fanotify_add_mark() 857 fsn_mark = fanotify_add_new_mark(group, connp, type, fsid); in fanotify_add_mark() 874 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_vfsmount_mark() 877 FSNOTIFY_OBJ_TYPE_VFSMOUNT, mask, flags, fsid); in fanotify_add_vfsmount_mark() 882 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_sb_mark() 820 fanotify_add_new_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, unsigned int type, __kernel_fsid_t *fsid) fanotify_add_new_mark() argument 846 fanotify_add_mark(struct fsnotify_group *group, fsnotify_connp_t *connp, unsigned int type, __u32 mask, unsigned int flags, __kernel_fsid_t *fsid) fanotify_add_mark() argument 872 fanotify_add_vfsmount_mark(struct fsnotify_group *group, struct vfsmount *mnt, __u32 mask, unsigned int flags, __kernel_fsid_t *fsid) fanotify_add_vfsmount_mark() argument 880 fanotify_add_sb_mark(struct fsnotify_group *group, struct super_block *sb, __u32 mask, unsigned int flags, __kernel_fsid_t *fsid) fanotify_add_sb_mark() argument 888 fanotify_add_inode_mark(struct fsnotify_group *group, struct inode *inode, __u32 mask, unsigned int flags, __kernel_fsid_t *fsid) fanotify_add_inode_mark() argument 1052 fanotify_test_fid(struct path *path, __kernel_fsid_t *fsid) fanotify_test_fid() argument 1135 __kernel_fsid_t __fsid, *fsid = NULL; do_fanotify_mark() local [all...] |
H A D | fanotify.h | 157 __kernel_fsid_t fsid; member 171 __kernel_fsid_t fsid; member 184 return &FANOTIFY_FE(event)->fsid; in fanotify_event_fsid() 186 return &FANOTIFY_NE(event)->fsid; in fanotify_event_fsid()
|
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | cache.c | 34 struct ceph_fsid fsid; member 39 .name = "CEPH.fsid", 55 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs() local 63 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs() 70 errorfc(fc, "fscache cookie already registered for fsid %pU, use fsc=<uniquifier> option", in ceph_fscache_register_fs() 71 fsid); in ceph_fscache_register_fs() 82 memcpy(&ent->fsid, fsi in ceph_fscache_register_fs() [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | nfs4getroot.c | 37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh()
|
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | nfs4getroot.c | 37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh()
|
/kernel/linux/linux-5.10/fs/overlayfs/ |
H A D | inode.c | 97 static int ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, int fsid) in ovl_map_dev_ino() argument 115 * overlay st_ino address space. The high bits holds the fsid in ovl_map_dev_ino() 116 * (upper fsid is 0). The lowest xinobit is reserved for mapping in ovl_map_dev_ino() 122 stat->ino |= ((u64)fsid) << (xinoshift + 1); in ovl_map_dev_ino() 151 stat->dev = OVL_FS(dentry->d_sb)->fs[fsid].pseudo_dev; in ovl_map_dev_ino() 165 int fsid = 0; in ovl_getattr() local 188 fsid = ovl_layer_lower(dentry)->fsid; in ovl_getattr() 218 fsid = ovl_layer_lower(dentry)->fsid; in ovl_getattr() 594 ovl_map_ino(struct inode *inode, unsigned long ino, int fsid) ovl_map_ino() argument 632 ovl_inode_init(struct inode *inode, struct ovl_inode_params *oip, unsigned long ino, int fsid) ovl_inode_init() argument 963 int fsid = bylower ? lowerpath->layer->fsid : 0; ovl_get_inode() local [all...] |
/kernel/linux/linux-5.10/fs/dlm/ |
H A D | plock.c | 93 op->info.fsid = info->fsid; in do_unlock_close() 125 op->info.fsid = ls->ls_global_id; in dlm_posix_lock() 284 op->info.fsid = ls->ls_global_id; in dlm_posix_unlock() 345 op->info.fsid = ls->ls_global_id; in dlm_posix_get() 455 if (iter->info.fsid == info.fsid && in dev_write() 470 iter->info.fsid == info.fsid) { in dev_write() 502 info.fsid, (unsigne in dev_write() [all...] |
/kernel/linux/linux-5.10/net/ceph/ |
H A D | ceph_common.c | 103 * Initially learn our fsid, or verify an fsid matches. 105 int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid) in ceph_check_fsid() argument 108 if (ceph_fsid_compare(&client->fsid, fsid)) { in ceph_check_fsid() 109 pr_err("bad fsid, had %pU got %pU", in ceph_check_fsid() 110 &client->fsid, fsid); in ceph_check_fsid() 114 memcpy(&client->fsid, fsid, sizeo in ceph_check_fsid() 220 parse_fsid(const char *str, struct ceph_fsid *fsid) parse_fsid() argument [all...] |
/kernel/linux/linux-6.6/net/ceph/ |
H A D | ceph_common.c | 103 * Initially learn our fsid, or verify an fsid matches. 105 int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid) in ceph_check_fsid() argument 108 if (ceph_fsid_compare(&client->fsid, fsid)) { in ceph_check_fsid() 109 pr_err("bad fsid, had %pU got %pU", in ceph_check_fsid() 110 &client->fsid, fsid); in ceph_check_fsid() 114 memcpy(&client->fsid, fsid, sizeo in ceph_check_fsid() 193 ceph_parse_fsid(const char *str, struct ceph_fsid *fsid) ceph_parse_fsid() argument [all...] |
/kernel/linux/linux-6.6/fs/overlayfs/ |
H A D | inode.c | 98 static void ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, int fsid) in ovl_map_dev_ino() argument 117 * overlay st_ino address space. The high bits holds the fsid in ovl_map_dev_ino() 118 * (upper fsid is 0). The lowest xinobit is reserved for mapping in ovl_map_dev_ino() 124 stat->ino |= ((u64)fsid) << (xinoshift + 1); in ovl_map_dev_ino() 153 stat->dev = ofs->fs[fsid].pseudo_dev; in ovl_map_dev_ino() 166 int fsid = 0; in ovl_getattr() local 192 fsid = ovl_layer_lower(dentry)->fsid; in ovl_getattr() 222 fsid = ovl_layer_lower(dentry)->fsid; in ovl_getattr() 972 ovl_map_ino(struct inode *inode, unsigned long ino, int fsid) ovl_map_ino() argument 1011 ovl_inode_init(struct inode *inode, struct ovl_inode_params *oip, unsigned long ino, int fsid) ovl_inode_init() argument 1345 int fsid = bylower ? lowerpath->layer->fsid : 0; ovl_get_inode() local [all...] |
H A D | super.c | 573 upper_layer->fsid = 0; in ovl_get_upper() 980 /* Get a unique fsid for the layer */ 1028 * The fsid after the last lower fsid is used for the data layers. 1049 * idx/fsid 0 are reserved for upper fs even with lower only overlay in ovl_get_layers() 1050 * and the last fsid is reserved for "null fs" of the data layers. in ovl_get_layers() 1076 int fsid; in ovl_get_layers() local 1079 fsid = ovl_get_fsid(ofs, &l->path); in ovl_get_layers() 1081 fsid = ovl_get_data_fsid(ofs); in ovl_get_layers() 1082 if (fsid < in ovl_get_layers() 1301 int fsid = lowerpath->layer->fsid; ovl_get_root() local 1324 ovl_inode_init(d_inode(root), &oip, ino, fsid); ovl_get_root() local [all...] |
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | cache.c | 88 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs() local 94 name = kasprintf(GFP_KERNEL, "ceph,%pU%s%s", fsid, uniq_len ? "," : "", in ceph_fscache_register_fs()
|
/kernel/linux/linux-6.6/fs/erofs/ |
H A D | super.c | 418 fsparam_string("fsid", Opt_fsid), 517 kfree(ctx->fsid); in erofs_fc_parse_param() 518 ctx->fsid = kstrdup(param->string, GFP_KERNEL); in erofs_fc_parse_param() 519 if (!ctx->fsid) in erofs_fc_parse_param() 598 sbi->fsid = ctx->fsid; in erofs_fc_fill_super() 599 ctx->fsid = NULL; in erofs_fc_fill_super() 708 if (IS_ENABLED(CONFIG_EROFS_FS_ONDEMAND) && ctx->fsid) in erofs_fc_get_tree() 722 if (ctx->fsid || ctx->domain_id) in erofs_fc_reconfigure() 723 erofs_info(sb, "ignoring reconfiguration for fsid|domain_i in erofs_fc_reconfigure() [all...] |
/kernel/linux/linux-6.6/fs/dlm/ |
H A D | plock.c | 52 if (iter->info.fsid == info->fsid && in plock_lookup_waiter() 144 op->info.fsid = ls->ls_global_id; in dlm_posix_lock() 325 op->info.fsid = ls->ls_global_id; in dlm_posix_unlock() 387 info.fsid = ls->ls_global_id; in dlm_posix_cancel() 449 op->info.fsid = ls->ls_global_id; in dlm_posix_get() 560 iter->info.fsid == info.fsid) { in dev_write() 592 info.fsid, (unsigned long long)info.number); in dev_write()
|
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfsxdr.c | 222 u32 fsid; in svcxdr_encode_fattr() local 247 fsid = (u32)fhp->fh_export->ex_fsid; in svcxdr_encode_fattr() 250 fsid = ((u32 *)fhp->fh_export->ex_uuid)[0]; in svcxdr_encode_fattr() 251 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[1]; in svcxdr_encode_fattr() 252 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[2]; in svcxdr_encode_fattr() 253 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[3]; in svcxdr_encode_fattr() 256 fsid = new_encode_dev(stat->dev); in svcxdr_encode_fattr() 259 *p++ = cpu_to_be32(fsid); in svcxdr_encode_fattr()
|