Searched refs:fb (Results 1 – 6 of 6) sorted by relevance
/fs/overlayfs/ |
D | namei.c | 88 int ovl_check_fb_len(struct ovl_fb *fb, int fb_len) in ovl_check_fb_len() argument 90 if (fb_len < sizeof(struct ovl_fb) || fb_len < fb->len) in ovl_check_fb_len() 93 if (fb->magic != OVL_FH_MAGIC) in ovl_check_fb_len() 97 if (fb->version > OVL_FH_VERSION || fb->flags & ~OVL_FH_FLAG_ALL) in ovl_check_fb_len() 101 if (!(fb->flags & OVL_FH_FLAG_ANY_ENDIAN) && in ovl_check_fb_len() 102 (fb->flags & OVL_FH_FLAG_BIG_ENDIAN) != OVL_FH_FLAG_CPU_ENDIAN) in ovl_check_fb_len() 133 err = ovl_check_fb_len(&fh->fb, res); in ovl_get_fh() 164 if (!uuid_equal(&fh->fb.uuid, &mnt->mnt_sb->s_uuid)) in ovl_decode_real_fh() 167 bytes = (fh->fb.len - offsetof(struct ovl_fb, fid)); in ovl_decode_real_fh() 168 real = exportfs_decode_fh(mnt, (struct fid *)fh->fb.fid, in ovl_decode_real_fh() [all …]
|
D | copy_up.c | 301 fh_type = exportfs_encode_fh(real, (void *)fh->fb.fid, &dwords, 0); in ovl_encode_real_fh() 310 fh->fb.version = OVL_FH_VERSION; in ovl_encode_real_fh() 311 fh->fb.magic = OVL_FH_MAGIC; in ovl_encode_real_fh() 312 fh->fb.type = fh_type; in ovl_encode_real_fh() 313 fh->fb.flags = OVL_FH_FLAG_CPU_ENDIAN; in ovl_encode_real_fh() 321 fh->fb.flags |= OVL_FH_FLAG_PATH_UPPER; in ovl_encode_real_fh() 322 fh->fb.len = sizeof(fh->fb) + buflen; in ovl_encode_real_fh() 323 fh->fb.uuid = *uuid; in ovl_encode_real_fh() 353 fh ? fh->fb.len : 0, 0); in ovl_set_origin() 370 err = ovl_do_setxattr(ofs, index, OVL_XATTR_UPPER, fh->buf, fh->fb.len); in ovl_set_upper_fh()
|
D | overlayfs.h | 106 struct ovl_fb fb; member 111 #define OVL_FH_WIRE_OFFSET offsetof(struct ovl_fh, fb) 112 #define OVL_FH_LEN(fh) (OVL_FH_WIRE_OFFSET + (fh)->fb.len) 394 int ovl_check_fb_len(struct ovl_fb *fb, int fb_len); 401 return ovl_check_fb_len(&fh->fb, fh_len - OVL_FH_WIRE_OFFSET); in ovl_check_fh_len()
|
D | export.c | 791 memcpy(&fh->fb, fid, buflen - OVL_FH_WIRE_OFFSET); in ovl_fid_to_fh() 813 flags = fh->fb.flags; in ovl_fh_to_dentry()
|
/fs/ext4/ |
D | fsmap.c | 361 struct ext4_fsmap *fb; in ext4_getfsmap_compare() local 364 fb = container_of(b, struct ext4_fsmap, fmr_list); in ext4_getfsmap_compare() 365 if (fa->fmr_physical < fb->fmr_physical) in ext4_getfsmap_compare() 367 else if (fa->fmr_physical > fb->fmr_physical) in ext4_getfsmap_compare()
|
/fs/btrfs/ |
D | raid56.c | 596 int fb = last->failb; in rbio_can_merge() local 602 fb = last->faila; in rbio_can_merge() 610 if (fa != cur_fa || fb != cur_fb) in rbio_can_merge()
|