• Home
  • Raw
  • Download

Lines Matching full:ni

73 /* ni->ni_flags */
255 struct ntfs_inode *ni; member
279 struct ntfs_inode *ni; member
290 struct ntfs_inode *ni; member
298 struct ntfs_inode *ni; member
304 struct ntfs_inode *ni; member
427 int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr,
431 int attr_set_size(struct ntfs_inode *ni, enum ATTR_TYPE type,
435 int attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn,
437 int attr_data_read_resident(struct ntfs_inode *ni, struct page *page);
438 int attr_data_write_resident(struct ntfs_inode *ni, struct page *page);
439 int attr_load_runs_vcn(struct ntfs_inode *ni, enum ATTR_TYPE type,
442 int attr_load_runs_range(struct ntfs_inode *ni, enum ATTR_TYPE type,
445 int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr,
448 int attr_is_frame_compressed(struct ntfs_inode *ni, struct ATTRIB *attr,
451 int attr_allocate_frame(struct ntfs_inode *ni, CLST frame, size_t compr_size,
453 int attr_collapse_range(struct ntfs_inode *ni, u64 vbo, u64 bytes);
454 int attr_insert_range(struct ntfs_inode *ni, u64 vbo, u64 bytes);
455 int attr_punch_hole(struct ntfs_inode *ni, u64 vbo, u64 bytes, u32 *frame_size);
458 void al_destroy(struct ntfs_inode *ni);
459 bool al_verify(struct ntfs_inode *ni);
460 int ntfs_load_attr_list(struct ntfs_inode *ni, struct ATTRIB *attr);
461 struct ATTR_LIST_ENTRY *al_enumerate(struct ntfs_inode *ni,
463 struct ATTR_LIST_ENTRY *al_find_le(struct ntfs_inode *ni,
466 struct ATTR_LIST_ENTRY *al_find_ex(struct ntfs_inode *ni,
470 int al_add_le(struct ntfs_inode *ni, enum ATTR_TYPE type, const __le16 *name,
473 bool al_remove_le(struct ntfs_inode *ni, struct ATTR_LIST_ENTRY *le);
474 bool al_delete_le(struct ntfs_inode *ni, enum ATTR_TYPE type, CLST vcn,
476 int al_update(struct ntfs_inode *ni, int sync);
511 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi);
512 struct ATTR_STD_INFO *ni_std(struct ntfs_inode *ni);
513 struct ATTR_STD_INFO5 *ni_std5(struct ntfs_inode *ni);
514 void ni_clear(struct ntfs_inode *ni);
515 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
516 int ni_load_mi(struct ntfs_inode *ni, const struct ATTR_LIST_ENTRY *le,
518 struct ATTRIB *ni_find_attr(struct ntfs_inode *ni, struct ATTRIB *attr,
523 struct ATTRIB *ni_enum_attr_ex(struct ntfs_inode *ni, struct ATTRIB *attr,
526 struct ATTRIB *ni_load_attr(struct ntfs_inode *ni, enum ATTR_TYPE type,
529 int ni_load_all_mi(struct ntfs_inode *ni);
530 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
531 int ni_remove_attr(struct ntfs_inode *ni, enum ATTR_TYPE type,
534 int ni_create_attr_list(struct ntfs_inode *ni);
535 int ni_expand_list(struct ntfs_inode *ni);
536 int ni_insert_nonresident(struct ntfs_inode *ni, enum ATTR_TYPE type,
541 int ni_insert_resident(struct ntfs_inode *ni, u32 data_size,
545 void ni_remove_attr_le(struct ntfs_inode *ni, struct ATTRIB *attr,
547 int ni_delete_all(struct ntfs_inode *ni);
548 struct ATTR_FILE_NAME *ni_fname_name(struct ntfs_inode *ni,
553 struct ATTR_FILE_NAME *ni_fname_type(struct ntfs_inode *ni, u8 name_type,
556 int ni_new_attr_flags(struct ntfs_inode *ni, enum FILE_ATTRIBUTE new_fa);
557 enum REPARSE_SIGN ni_parse_reparse(struct ntfs_inode *ni, struct ATTRIB *attr,
561 int ni_fiemap(struct ntfs_inode *ni, struct fiemap_extent_info *fieinfo,
563 int ni_readpage_cmpr(struct ntfs_inode *ni, struct page *page);
564 int ni_decompress_file(struct ntfs_inode *ni);
565 int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages,
567 int ni_write_frame(struct ntfs_inode *ni, struct page **pages,
569 int ni_remove_name(struct ntfs_inode *dir_ni, struct ntfs_inode *ni,
572 bool ni_remove_name_undo(struct ntfs_inode *dir_ni, struct ntfs_inode *ni,
576 int ni_add_name(struct ntfs_inode *dir_ni, struct ntfs_inode *ni,
580 struct ntfs_inode *ni, struct NTFS_DE *de, struct NTFS_DE *new_de,
587 int log_replay(struct ntfs_inode *ni, bool *initialized);
595 int ntfs_loadlog_and_replay(struct ntfs_inode *ni, struct ntfs_sb_info *sbi);
601 struct ntfs_inode *ni, struct mft_inode **mi);
661 int indx_used_bit(struct ntfs_index *indx, struct ntfs_inode *ni, size_t *bit);
677 struct INDEX_ROOT *indx_get_root(struct ntfs_index *indx, struct ntfs_inode *ni,
679 int indx_read(struct ntfs_index *idx, struct ntfs_inode *ni, CLST vbn,
685 int indx_find_sort(struct ntfs_index *indx, struct ntfs_inode *ni,
688 int indx_find_raw(struct ntfs_index *indx, struct ntfs_inode *ni,
691 int indx_insert_entry(struct ntfs_index *indx, struct ntfs_inode *ni,
694 int indx_delete_entry(struct ntfs_index *indx, struct ntfs_inode *ni,
696 int indx_update_dup(struct ntfs_inode *ni, struct ntfs_sb_info *sbi,
760 bool mi_remove_attr(struct ntfs_inode *ni, struct mft_inode *mi,
1042 static inline bool is_compressed(const struct ntfs_inode *ni) in is_compressed() argument
1044 return (ni->std_fa & FILE_ATTRIBUTE_COMPRESSED) || in is_compressed()
1045 (ni->ni_flags & NI_FLAG_COMPRESSED_MASK); in is_compressed()
1048 static inline int ni_ext_compress_bits(const struct ntfs_inode *ni) in ni_ext_compress_bits() argument
1050 return 0xb + (ni->ni_flags & NI_FLAG_COMPRESSED_MASK); in ni_ext_compress_bits()
1054 static inline void ni_set_ext_compress_bits(struct ntfs_inode *ni, u8 bits) in ni_set_ext_compress_bits() argument
1056 ni->ni_flags |= (bits - 0xb) & NI_FLAG_COMPRESSED_MASK; in ni_set_ext_compress_bits()
1059 static inline bool is_dedup(const struct ntfs_inode *ni) in is_dedup() argument
1061 return ni->ni_flags & NI_FLAG_DEDUPLICATED; in is_dedup()
1064 static inline bool is_encrypted(const struct ntfs_inode *ni) in is_encrypted() argument
1066 return ni->std_fa & FILE_ATTRIBUTE_ENCRYPTED; in is_encrypted()
1069 static inline bool is_sparsed(const struct ntfs_inode *ni) in is_sparsed() argument
1071 return ni->std_fa & FILE_ATTRIBUTE_SPARSE_FILE; in is_sparsed()
1074 static inline int is_resident(struct ntfs_inode *ni) in is_resident() argument
1076 return ni->ni_flags & NI_FLAG_RESIDENT; in is_resident()
1118 static inline void ni_lock(struct ntfs_inode *ni) in ni_lock() argument
1120 mutex_lock_nested(&ni->ni_lock, NTFS_INODE_MUTEX_NORMAL); in ni_lock()
1123 static inline void ni_lock_dir(struct ntfs_inode *ni) in ni_lock_dir() argument
1125 mutex_lock_nested(&ni->ni_lock, NTFS_INODE_MUTEX_PARENT); in ni_lock_dir()
1128 static inline void ni_lock_dir2(struct ntfs_inode *ni) in ni_lock_dir2() argument
1130 mutex_lock_nested(&ni->ni_lock, NTFS_INODE_MUTEX_PARENT2); in ni_lock_dir2()
1133 static inline void ni_unlock(struct ntfs_inode *ni) in ni_unlock() argument
1135 mutex_unlock(&ni->ni_lock); in ni_unlock()
1138 static inline int ni_trylock(struct ntfs_inode *ni) in ni_trylock() argument
1140 return mutex_trylock(&ni->ni_lock); in ni_trylock()
1143 static inline int attr_load_runs_attr(struct ntfs_inode *ni, in attr_load_runs_attr() argument
1147 return attr_load_runs_vcn(ni, attr->type, attr_name(attr), in attr_load_runs_attr()