Lines Matching refs:leaf
780 struct gfs2_leaf *leaf; in gfs2_dirent_search() local
798 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dirent_search()
799 ln = be64_to_cpu(leaf->lf_next); in gfs2_dirent_search()
831 struct gfs2_leaf *leaf; in new_leaf() local
846 leaf = (struct gfs2_leaf *)bh->b_data; in new_leaf()
847 leaf->lf_depth = cpu_to_be16(depth); in new_leaf()
848 leaf->lf_entries = 0; in new_leaf()
849 leaf->lf_dirent_format = cpu_to_be32(GFS2_FORMAT_DE); in new_leaf()
850 leaf->lf_next = 0; in new_leaf()
851 leaf->lf_inode = cpu_to_be64(ip->i_no_addr); in new_leaf()
852 leaf->lf_dist = cpu_to_be32(1); in new_leaf()
853 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in new_leaf()
854 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in new_leaf()
855 memset(leaf->lf_reserved2, 0, sizeof(leaf->lf_reserved2)); in new_leaf()
856 dent = (struct gfs2_dirent *)(leaf+1); in new_leaf()
859 return leaf; in new_leaf()
876 struct gfs2_leaf *leaf; in dir_make_exhash() local
889 leaf = new_leaf(inode, &bh, 0); in dir_make_exhash()
890 if (!leaf) in dir_make_exhash()
895 leaf->lf_entries = cpu_to_be16(dip->i_entries); in dir_make_exhash()
1311 int leaf = 0; in gfs2_dir_read_leaf() local
1370 larr[leaf++] = bh; in gfs2_dir_read_leaf()
1379 for(i = 0; i < leaf; i++) in gfs2_dir_read_leaf()
1630 struct gfs2_leaf *leaf, *oleaf; in dir_new_leaf() local
1654 leaf = new_leaf(inode, &bh, be16_to_cpu(oleaf->lf_depth)); in dir_new_leaf()
1655 if (!leaf) { in dir_new_leaf()
1659 leaf->lf_dist = cpu_to_be32(dist); in dir_new_leaf()
1705 struct gfs2_leaf *leaf; in gfs2_dir_add() local
1722 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_add()
1723 be16_add_cpu(&leaf->lf_entries, 1); in gfs2_dir_add()
1724 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_add()
1725 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_add()
1803 struct gfs2_leaf *leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_del() local
1804 u16 entries = be16_to_cpu(leaf->lf_entries); in gfs2_dir_del()
1807 leaf->lf_entries = cpu_to_be16(--entries); in gfs2_dir_del()
1808 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_del()
1809 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_del()
2010 struct gfs2_leaf *leaf; in gfs2_dir_exhash_dealloc() local
2029 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_exhash_dealloc()
2030 len = 1 << (dip->i_depth - be16_to_cpu(leaf->lf_depth)); in gfs2_dir_exhash_dealloc()