Searched refs:wnd (Results 1 – 5 of 5) sorted by relevance
| /linux/fs/ntfs3/ |
| H A D | bitmap.c | 35 static int wnd_rescan(struct wnd_bitmap *wnd); 36 static struct buffer_head *wnd_map(struct wnd_bitmap *wnd, size_t iw); 37 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits); 123 void wnd_close(struct wnd_bitmap *wnd) in wnd_close() argument 127 kvfree(wnd->free_bits); in wnd_close() 128 wnd->free_bits = NULL; in wnd_close() 129 run_close(&wnd->run); in wnd_close() 131 node = rb_first(&wnd->start_tree); in wnd_close() 135 rb_erase(node, &wnd->start_tree); in wnd_close() 231 static void wnd_add_free_ext(struct wnd_bitmap *wnd, size_t bit, size_t len, in wnd_add_free_ext() argument [all …]
|
| H A D | fsntfs.c | 366 struct wnd_bitmap *wnd = &sbi->used.bitmap; in ntfs_look_for_free_space() local 368 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_look_for_free_space() 370 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space() 377 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space() 386 lcn = wnd_zone_bit(wnd); in ntfs_look_for_free_space() 389 wnd_zone_set(wnd, lcn + alen, zlen - alen); in ntfs_look_for_free_space() 391 err = wnd_set_used(wnd, lcn, alen); in ntfs_look_for_free_space() 405 if (lcn >= wnd->nbits) in ntfs_look_for_free_space() 408 alen = wnd_find(wnd, len, lcn, BITMAP_FIND_MARK_AS_USED, &alcn); in ntfs_look_for_free_space() 413 zlen = wnd_zone_len(wnd); in ntfs_look_for_free_space() [all …]
|
| H A D | ntfs_fs.h | 930 void wnd_close(struct wnd_bitmap *wnd); 931 static inline size_t wnd_zeroes(const struct wnd_bitmap *wnd) in wnd_zeroes() argument 933 return wnd->total_zeroes; in wnd_zeroes() 935 int wnd_init(struct wnd_bitmap *wnd, struct super_block *sb, size_t nbits); 936 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits); 937 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits); 938 int wnd_set_used_safe(struct wnd_bitmap *wnd, size_t bit, size_t bits, 940 bool wnd_is_free(struct wnd_bitmap *wnd, size_t bit, size_t bits); 941 bool wnd_is_used(struct wnd_bitmap *wnd, size_t bit, size_t bits); 946 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, [all …]
|
| H A D | run.c | 1186 struct wnd_bitmap *wnd; in run_unpack_ex() local 1199 wnd = &sbi->used.bitmap; in run_unpack_ex() 1215 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in run_unpack_ex() 1216 zone = max(wnd->zone_bit, lcn) < min(wnd->zone_end, lcn + len); in run_unpack_ex() 1218 ok = !zone && wnd_is_used(wnd, lcn, len); in run_unpack_ex() 1219 up_read(&wnd->rw_lock); in run_unpack_ex() 1226 if (!down_write_trylock(&wnd->rw_lock)) in run_unpack_ex() 1234 wnd_zone_set(wnd, 0, 0); in run_unpack_ex() 1238 err = wnd_set_used_safe(wnd, lcn, len, &done); in run_unpack_ex() 1253 up_write(&wnd->rw_lock); in run_unpack_ex()
|
| H A D | super.c | 743 struct wnd_bitmap *wnd = &sbi->used.bitmap; in ntfs_statfs() local 748 buf->f_blocks = wnd->nbits; in ntfs_statfs() 750 buf->f_bfree = wnd_zeroes(wnd); in ntfs_statfs()
|