Lines Matching refs:leaf
820 struct gfs2_leaf *leaf; in gfs2_dirent_search() local
838 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dirent_search()
839 ln = be64_to_cpu(leaf->lf_next); in gfs2_dirent_search()
871 struct gfs2_leaf *leaf; in new_leaf() local
885 leaf = (struct gfs2_leaf *)bh->b_data; in new_leaf()
886 leaf->lf_depth = cpu_to_be16(depth); in new_leaf()
887 leaf->lf_entries = 0; in new_leaf()
888 leaf->lf_dirent_format = cpu_to_be32(GFS2_FORMAT_DE); in new_leaf()
889 leaf->lf_next = 0; in new_leaf()
890 leaf->lf_inode = cpu_to_be64(ip->i_no_addr); in new_leaf()
891 leaf->lf_dist = cpu_to_be32(1); in new_leaf()
892 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in new_leaf()
893 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in new_leaf()
894 memset(leaf->lf_reserved2, 0, sizeof(leaf->lf_reserved2)); in new_leaf()
895 dent = (struct gfs2_dirent *)(leaf+1); in new_leaf()
898 return leaf; in new_leaf()
915 struct gfs2_leaf *leaf; in dir_make_exhash() local
927 leaf = new_leaf(inode, &bh, 0); in dir_make_exhash()
928 if (!leaf) in dir_make_exhash()
933 leaf->lf_entries = cpu_to_be16(dip->i_entries); in dir_make_exhash()
1376 unsigned leaves = 0, leaf = 0, offset, sort_offset; in gfs2_dir_read_leaf() local
1444 sort_id = gfs2_set_cookies(sdp, bh, leaf, &darr[offset], in gfs2_dir_read_leaf()
1450 larr[leaf++] = bh; in gfs2_dir_read_leaf()
1452 larr[leaf++] = NULL; in gfs2_dir_read_leaf()
1461 for(i = 0; i < leaf; i++) in gfs2_dir_read_leaf()
1728 struct gfs2_leaf *leaf, *oleaf; in dir_new_leaf() local
1752 leaf = new_leaf(inode, &bh, be16_to_cpu(oleaf->lf_depth)); in dir_new_leaf()
1753 if (!leaf) { in dir_new_leaf()
1757 leaf->lf_dist = cpu_to_be32(dist); in dir_new_leaf()
1803 struct gfs2_leaf *leaf; in gfs2_dir_add() local
1820 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_add()
1821 be16_add_cpu(&leaf->lf_entries, 1); in gfs2_dir_add()
1822 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_add()
1823 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_add()
1902 struct gfs2_leaf *leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_del() local
1903 u16 entries = be16_to_cpu(leaf->lf_entries); in gfs2_dir_del()
1906 leaf->lf_entries = cpu_to_be16(--entries); in gfs2_dir_del()
1907 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_del()
1908 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_del()
2104 struct gfs2_leaf *leaf; in gfs2_dir_exhash_dealloc() local
2123 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_exhash_dealloc()
2124 len = BIT(dip->i_depth - be16_to_cpu(leaf->lf_depth)); in gfs2_dir_exhash_dealloc()