Lines Matching refs:es

36 	struct exfat_entry_set_cache es;
39 err = exfat_get_dentry_set(&es, sb, p_dir, entry, ES_ALL_ENTRIES);
49 for (i = ES_IDX_FIRST_FILENAME; i < es.num_entries; i++) {
50 struct exfat_dentry *ep = exfat_get_dentry_cached(&es, i);
63 exfat_put_dentry_set(&es, false);
623 void exfat_update_dir_chksum_with_entry_set(struct exfat_entry_set_cache *es)
629 for (i = ES_IDX_FILE; i < es->num_entries; i++) {
630 ep = exfat_get_dentry_cached(es, i);
635 ep = exfat_get_dentry_cached(es, ES_IDX_FILE);
637 es->modified = true;
640 int exfat_put_dentry_set(struct exfat_entry_set_cache *es, int sync)
644 if (es->modified)
645 err = exfat_update_bhs(es->bh, es->num_bh, sync);
647 for (i = 0; i < es->num_bh; i++)
649 bforget(es->bh[i]);
651 brelse(es->bh[i]);
653 if (IS_DYNAMIC_ES(es))
654 kfree(es->bh);
827 struct exfat_entry_set_cache *es, int num)
829 int off = es->start_off + num * DENTRY_SIZE;
830 struct buffer_head *bh = es->bh[EXFAT_B_TO_BLK(off, es->sb)];
831 char *p = bh->b_data + EXFAT_BLK_OFFSET(off, es->sb);
850 int exfat_get_dentry_set(struct exfat_entry_set_cache *es,
872 memset(es, 0, sizeof(*es));
873 es->sb = sb;
874 es->modified = false;
875 es->start_off = off;
876 es->bh = es->__bh;
881 es->bh[es->num_bh++] = bh;
883 ep = exfat_get_dentry_cached(es, ES_IDX_FILE);
889 es->num_entries = num_entries;
892 if (num_bh > ARRAY_SIZE(es->__bh)) {
893 es->bh = kmalloc_array(num_bh, sizeof(*es->bh), GFP_KERNEL);
894 if (!es->bh) {
898 es->bh[0] = bh;
918 es->bh[es->num_bh++] = bh;
923 ep = exfat_get_dentry_cached(es, i);
930 exfat_put_dentry_set(es, false);