Lines Matching refs:leaf
775 struct gfs2_leaf *leaf; in gfs2_dirent_search() local
793 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dirent_search()
794 ln = be64_to_cpu(leaf->lf_next); in gfs2_dirent_search()
826 struct gfs2_leaf *leaf; in new_leaf() local
841 leaf = (struct gfs2_leaf *)bh->b_data; in new_leaf()
842 leaf->lf_depth = cpu_to_be16(depth); in new_leaf()
843 leaf->lf_entries = 0; in new_leaf()
844 leaf->lf_dirent_format = cpu_to_be32(GFS2_FORMAT_DE); in new_leaf()
845 leaf->lf_next = 0; in new_leaf()
846 leaf->lf_inode = cpu_to_be64(ip->i_no_addr); in new_leaf()
847 leaf->lf_dist = cpu_to_be32(1); in new_leaf()
848 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in new_leaf()
849 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in new_leaf()
850 memset(leaf->lf_reserved2, 0, sizeof(leaf->lf_reserved2)); in new_leaf()
851 dent = (struct gfs2_dirent *)(leaf+1); in new_leaf()
854 return leaf; in new_leaf()
871 struct gfs2_leaf *leaf; in dir_make_exhash() local
884 leaf = new_leaf(inode, &bh, 0); in dir_make_exhash()
885 if (!leaf) in dir_make_exhash()
890 leaf->lf_entries = cpu_to_be16(dip->i_entries); in dir_make_exhash()
1306 int leaf = 0; in gfs2_dir_read_leaf() local
1365 larr[leaf++] = bh; in gfs2_dir_read_leaf()
1374 for(i = 0; i < leaf; i++) in gfs2_dir_read_leaf()
1625 struct gfs2_leaf *leaf, *oleaf; in dir_new_leaf() local
1649 leaf = new_leaf(inode, &bh, be16_to_cpu(oleaf->lf_depth)); in dir_new_leaf()
1650 if (!leaf) { in dir_new_leaf()
1654 leaf->lf_dist = cpu_to_be32(dist); in dir_new_leaf()
1700 struct gfs2_leaf *leaf; in gfs2_dir_add() local
1717 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_add()
1718 be16_add_cpu(&leaf->lf_entries, 1); in gfs2_dir_add()
1719 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_add()
1720 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_add()
1798 struct gfs2_leaf *leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_del() local
1799 u16 entries = be16_to_cpu(leaf->lf_entries); in gfs2_dir_del()
1802 leaf->lf_entries = cpu_to_be16(--entries); in gfs2_dir_del()
1803 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_del()
1804 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_del()
2005 struct gfs2_leaf *leaf; in gfs2_dir_exhash_dealloc() local
2024 leaf = (struct gfs2_leaf *)bh->b_data; in gfs2_dir_exhash_dealloc()
2025 len = 1 << (dip->i_depth - be16_to_cpu(leaf->lf_depth)); in gfs2_dir_exhash_dealloc()