Lines Matching refs:ni

245 		struct ntfs_inode *ni;  member
269 struct ntfs_inode *ni; member
280 struct ntfs_inode *ni; member
289 struct ntfs_inode *ni; member
295 struct ntfs_inode *ni; member
416 int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
420 int attr_set_size(struct ntfs_inode *ni, enum ATTR_TYPE type,
424 int attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn,
426 int attr_data_read_resident(struct ntfs_inode *ni, struct page *page);
427 int attr_data_write_resident(struct ntfs_inode *ni, struct page *page);
428 int attr_load_runs_vcn(struct ntfs_inode *ni, enum ATTR_TYPE type,
431 int attr_load_runs_range(struct ntfs_inode *ni, enum ATTR_TYPE type,
434 int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr,
437 int attr_is_frame_compressed(struct ntfs_inode *ni, struct ATTRIB *attr,
439 int attr_allocate_frame(struct ntfs_inode *ni, CLST frame, size_t compr_size,
441 int attr_collapse_range(struct ntfs_inode *ni, u64 vbo, u64 bytes);
442 int attr_insert_range(struct ntfs_inode *ni, u64 vbo, u64 bytes);
443 int attr_punch_hole(struct ntfs_inode *ni, u64 vbo, u64 bytes, u32 *frame_size);
446 void al_destroy(struct ntfs_inode *ni);
447 bool al_verify(struct ntfs_inode *ni);
448 int ntfs_load_attr_list(struct ntfs_inode *ni, struct ATTRIB *attr);
449 struct ATTR_LIST_ENTRY *al_enumerate(struct ntfs_inode *ni,
451 struct ATTR_LIST_ENTRY *al_find_le(struct ntfs_inode *ni,
454 struct ATTR_LIST_ENTRY *al_find_ex(struct ntfs_inode *ni,
458 int al_add_le(struct ntfs_inode *ni, enum ATTR_TYPE type, const __le16 *name,
461 bool al_remove_le(struct ntfs_inode *ni, struct ATTR_LIST_ENTRY *le);
462 bool al_delete_le(struct ntfs_inode *ni, enum ATTR_TYPE type, CLST vcn,
465 int al_update(struct ntfs_inode *ni, int sync);
502 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi);
503 struct ATTR_STD_INFO *ni_std(struct ntfs_inode *ni);
504 struct ATTR_STD_INFO5 *ni_std5(struct ntfs_inode *ni);
505 void ni_clear(struct ntfs_inode *ni);
506 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
507 int ni_load_mi(struct ntfs_inode *ni, const struct ATTR_LIST_ENTRY *le,
509 struct ATTRIB *ni_find_attr(struct ntfs_inode *ni, struct ATTRIB *attr,
514 struct ATTRIB *ni_enum_attr_ex(struct ntfs_inode *ni, struct ATTRIB *attr,
517 struct ATTRIB *ni_load_attr(struct ntfs_inode *ni, enum ATTR_TYPE type,
520 int ni_load_all_mi(struct ntfs_inode *ni);
521 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
522 int ni_remove_attr(struct ntfs_inode *ni, enum ATTR_TYPE type,
525 int ni_create_attr_list(struct ntfs_inode *ni);
526 int ni_expand_list(struct ntfs_inode *ni);
527 int ni_insert_nonresident(struct ntfs_inode *ni, enum ATTR_TYPE type,
532 int ni_insert_resident(struct ntfs_inode *ni, u32 data_size,
536 void ni_remove_attr_le(struct ntfs_inode *ni, struct ATTRIB *attr,
538 int ni_delete_all(struct ntfs_inode *ni);
539 struct ATTR_FILE_NAME *ni_fname_name(struct ntfs_inode *ni,
544 struct ATTR_FILE_NAME *ni_fname_type(struct ntfs_inode *ni, u8 name_type,
547 int ni_new_attr_flags(struct ntfs_inode *ni, enum FILE_ATTRIBUTE new_fa);
548 enum REPARSE_SIGN ni_parse_reparse(struct ntfs_inode *ni, struct ATTRIB *attr,
552 int ni_fiemap(struct ntfs_inode *ni, struct fiemap_extent_info *fieinfo,
554 int ni_readpage_cmpr(struct ntfs_inode *ni, struct page *page);
555 int ni_decompress_file(struct ntfs_inode *ni);
556 int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages,
558 int ni_write_frame(struct ntfs_inode *ni, struct page **pages,
560 int ni_remove_name(struct ntfs_inode *dir_ni, struct ntfs_inode *ni,
563 bool ni_remove_name_undo(struct ntfs_inode *dir_ni, struct ntfs_inode *ni,
567 int ni_add_name(struct ntfs_inode *dir_ni, struct ntfs_inode *ni,
571 struct ntfs_inode *ni, struct NTFS_DE *de, struct NTFS_DE *new_de,
577 int log_replay(struct ntfs_inode *ni, bool *initialized);
584 int ntfs_loadlog_and_replay(struct ntfs_inode *ni, struct ntfs_sb_info *sbi);
591 struct ntfs_inode *ni, struct mft_inode **mi);
648 int indx_used_bit(struct ntfs_index *indx, struct ntfs_inode *ni, size_t *bit);
664 struct INDEX_ROOT *indx_get_root(struct ntfs_index *indx, struct ntfs_inode *ni,
666 int indx_read(struct ntfs_index *idx, struct ntfs_inode *ni, CLST vbn,
672 int indx_find_sort(struct ntfs_index *indx, struct ntfs_inode *ni,
675 int indx_find_raw(struct ntfs_index *indx, struct ntfs_inode *ni,
678 int indx_insert_entry(struct ntfs_index *indx, struct ntfs_inode *ni,
681 int indx_delete_entry(struct ntfs_index *indx, struct ntfs_inode *ni,
683 int indx_update_dup(struct ntfs_inode *ni, struct ntfs_sb_info *sbi,
747 bool mi_remove_attr(struct ntfs_inode *ni, struct mft_inode *mi,
1030 static inline bool is_compressed(const struct ntfs_inode *ni) in is_compressed() argument
1032 return (ni->std_fa & FILE_ATTRIBUTE_COMPRESSED) || in is_compressed()
1033 (ni->ni_flags & NI_FLAG_COMPRESSED_MASK); in is_compressed()
1036 static inline int ni_ext_compress_bits(const struct ntfs_inode *ni) in ni_ext_compress_bits() argument
1038 return 0xb + (ni->ni_flags & NI_FLAG_COMPRESSED_MASK); in ni_ext_compress_bits()
1042 static inline void ni_set_ext_compress_bits(struct ntfs_inode *ni, u8 bits) in ni_set_ext_compress_bits() argument
1044 ni->ni_flags |= (bits - 0xb) & NI_FLAG_COMPRESSED_MASK; in ni_set_ext_compress_bits()
1047 static inline bool is_dedup(const struct ntfs_inode *ni) in is_dedup() argument
1049 return ni->ni_flags & NI_FLAG_DEDUPLICATED; in is_dedup()
1052 static inline bool is_encrypted(const struct ntfs_inode *ni) in is_encrypted() argument
1054 return ni->std_fa & FILE_ATTRIBUTE_ENCRYPTED; in is_encrypted()
1057 static inline bool is_sparsed(const struct ntfs_inode *ni) in is_sparsed() argument
1059 return ni->std_fa & FILE_ATTRIBUTE_SPARSE_FILE; in is_sparsed()
1062 static inline int is_resident(struct ntfs_inode *ni) in is_resident() argument
1064 return ni->ni_flags & NI_FLAG_RESIDENT; in is_resident()
1106 static inline void ni_lock(struct ntfs_inode *ni) in ni_lock() argument
1108 mutex_lock_nested(&ni->ni_lock, NTFS_INODE_MUTEX_NORMAL); in ni_lock()
1111 static inline void ni_lock_dir(struct ntfs_inode *ni) in ni_lock_dir() argument
1113 mutex_lock_nested(&ni->ni_lock, NTFS_INODE_MUTEX_PARENT); in ni_lock_dir()
1116 static inline void ni_unlock(struct ntfs_inode *ni) in ni_unlock() argument
1118 mutex_unlock(&ni->ni_lock); in ni_unlock()
1121 static inline int ni_trylock(struct ntfs_inode *ni) in ni_trylock() argument
1123 return mutex_trylock(&ni->ni_lock); in ni_trylock()
1126 static inline int attr_load_runs_attr(struct ntfs_inode *ni, in attr_load_runs_attr() argument
1130 return attr_load_runs_vcn(ni, attr->type, attr_name(attr), in attr_load_runs_attr()