/linux/fs/adfs/ |
H A D | dir.c | 17 int adfs_dir_copyfrom(void *dst, struct adfs_dir *dir, unsigned int offset, in adfs_dir_copyfrom() argument 20 struct super_block *sb = dir->sb; in adfs_dir_copyfrom() 26 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyfrom() 30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom() 37 memcpy(dst, dir->bhs[index]->b_data + offset, len); in adfs_dir_copyfrom() 42 int adfs_dir_copyto(struct adfs_dir *dir, unsigned int offset, const void *src, in adfs_dir_copyto() argument 45 struct super_block *sb = dir->sb; in adfs_dir_copyto() 51 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyto() 55 memcpy(dir->bhs[index]->b_data + offset, src, remain); in adfs_dir_copyto() 62 memcpy(dir->bhs[index]->b_data + offset, src, len); in adfs_dir_copyto() [all …]
|
H A D | dir_fplus.c | 70 static u8 adfs_fplus_checkbyte(struct adfs_dir *dir) in adfs_fplus_checkbyte() argument 72 struct adfs_bigdirheader *h = dir->bighead; in adfs_fplus_checkbyte() 73 struct adfs_bigdirtail *t = dir->bigtail; in adfs_fplus_checkbyte() 83 bp = (void *)dir->bhs[bi]->b_data; in adfs_fplus_checkbyte() 84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte() 104 unsigned int size, struct adfs_dir *dir) in adfs_fplus_read() argument 112 ret = adfs_dir_read_buffers(sb, indaddr, sb->s_blocksize, dir); in adfs_fplus_read() 116 dir->bighead = h = (void *)dir->bhs[0]->b_data; in adfs_fplus_read() 131 ret = adfs_dir_read_buffers(sb, indaddr, dirsize, dir); in adfs_fplus_read() 135 dir->bigtail = t = (struct adfs_bigdirtail *) in adfs_fplus_read() [all …]
|
H A D | dir_f.c | 70 adfs_dir_checkbyte(const struct adfs_dir *dir) in adfs_dir_checkbyte() argument 72 struct buffer_head * const *bh = dir->bh; in adfs_dir_checkbyte() 73 const int blocksize_bits = dir->sb->s_blocksize_bits; in adfs_dir_checkbyte() 124 static int adfs_f_validate(struct adfs_dir *dir) in adfs_f_validate() argument 126 struct adfs_dirheader *head = dir->dirhead; in adfs_f_validate() 127 struct adfs_newdirtail *tail = dir->newtail; in adfs_f_validate() 134 adfs_dir_checkbyte(dir) != tail->dircheckbyte) in adfs_f_validate() 142 struct adfs_dir *dir) in adfs_f_read() argument 150 ret = adfs_dir_read_buffers(sb, indaddr, ADFS_NEWDIR_SIZE, dir); in adfs_f_read() 154 dir->dirhead = bufoff(dir->bh, 0); in adfs_f_read() [all …]
|
/linux/lib/ |
H A D | ref_tracker.c | 32 ref_tracker_get_stats(struct ref_tracker_dir *dir, unsigned int limit) in ref_tracker_get_stats() argument 44 list_for_each_entry(tracker, &dir->list, head) { in ref_tracker_get_stats() 84 __ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir, in __ref_tracker_dir_pr_ostream() argument 92 lockdep_assert_held(&dir->lock); in __ref_tracker_dir_pr_ostream() 94 if (list_empty(&dir->list)) in __ref_tracker_dir_pr_ostream() 97 stats = ref_tracker_get_stats(dir, display_limit); in __ref_tracker_dir_pr_ostream() 100 dir->name, dir, stats); in __ref_tracker_dir_pr_ostream() 110 pr_ostream(s, "%s@%pK has %d/%d users at\n%s\n", dir->name, dir, in __ref_tracker_dir_pr_ostream() 117 dir->name, dir, skipped, stats->total); in __ref_tracker_dir_pr_ostream() 124 void ref_tracker_dir_print_locked(struct ref_tracker_dir *dir, in ref_tracker_dir_print_locked() argument [all …]
|
/linux/drivers/misc/cxl/ |
H A D | debugfs.c | 36 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl9() argument 38 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR1)); in cxl_debugfs_add_adapter_regs_psl9() 39 debugfs_create_io_x64("fir_mask", 0400, dir, in cxl_debugfs_add_adapter_regs_psl9() 41 debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR_CNTL)); in cxl_debugfs_add_adapter_regs_psl9() 42 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_TRACECFG)); in cxl_debugfs_add_adapter_regs_psl9() 43 debugfs_create_io_x64("debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9() 45 debugfs_create_io_x64("xsl-debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9() 49 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl8() argument 51 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR1)); in cxl_debugfs_add_adapter_regs_psl8() 52 debugfs_create_io_x64("fir2", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR2)); in cxl_debugfs_add_adapter_regs_psl8() [all …]
|
/linux/include/trace/events/ |
H A D | dma.h | 18 #define decode_dma_data_direction(dir) \ argument 19 __print_symbolic(dir, \ 38 size_t size, enum dma_data_direction dir, unsigned long attrs), 39 TP_ARGS(dev, phys_addr, dma_addr, size, dir, attrs), 46 __field(enum dma_data_direction, dir) 55 __entry->dir = dir; 61 decode_dma_data_direction(__entry->dir), 71 size_t size, enum dma_data_direction dir, unsigned long attrs), \ 72 TP_ARGS(dev, phys_addr, dma_addr, size, dir, attrs)) 79 enum dma_data_direction dir, unsigned long attrs), [all …]
|
/linux/include/linux/ |
H A D | ref_tracker.h | 26 static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, in ref_tracker_dir_init() argument 30 INIT_LIST_HEAD(&dir->list); in ref_tracker_dir_init() 31 INIT_LIST_HEAD(&dir->quarantine); in ref_tracker_dir_init() 32 spin_lock_init(&dir->lock); in ref_tracker_dir_init() 33 dir->quarantine_avail = quarantine_count; in ref_tracker_dir_init() 34 dir->dead = false; in ref_tracker_dir_init() 35 refcount_set(&dir->untracked, 1); in ref_tracker_dir_init() 36 refcount_set(&dir->no_tracker, 1); in ref_tracker_dir_init() 37 strscpy(dir->name, name, sizeof(dir->name)); in ref_tracker_dir_init() 41 void ref_tracker_dir_exit(struct ref_tracker_dir *dir); [all …]
|
/linux/fs/ext4/ |
H A D | namei.c | 302 static unsigned dx_root_limit(struct inode *dir, unsigned infosize); 303 static unsigned dx_node_limit(struct inode *dir); 305 struct inode *dir, 309 static int dx_make_map(struct inode *dir, struct buffer_head *bh, 313 static struct ext4_dir_entry_2 *dx_move_dirents(struct inode *dir, char *from, 316 static struct ext4_dir_entry_2 *dx_pack_dirents(struct inode *dir, char *base, 320 static int ext4_htree_next_block(struct inode *dir, __u32 hash, 324 static struct buffer_head * ext4_dx_find_entry(struct inode *dir, 328 struct inode *dir, struct inode *inode); 609 static inline unsigned dx_root_limit(struct inode *dir, unsigned infosize) in dx_root_limit() argument [all …]
|
/linux/kernel/dma/ |
H A D | mapping.c | 156 size_t offset, size_t size, enum dma_data_direction dir, in dma_map_page_attrs() argument 162 BUG_ON(!valid_dma_direction(dir)); in dma_map_page_attrs() 169 addr = dma_direct_map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 171 addr = iommu_dma_map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 173 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 174 kmsan_handle_dma(page, offset, size, dir); in dma_map_page_attrs() 175 trace_dma_map_page(dev, page_to_phys(page) + offset, addr, size, dir, in dma_map_page_attrs() 177 debug_dma_map_page(dev, page, offset, size, dir, addr, attrs); in dma_map_page_attrs() 184 enum dma_data_direction dir, unsigned long attrs) in dma_unmap_page_attrs() argument 188 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_page_attrs() [all …]
|
H A D | direct.h | 22 enum dma_data_direction dir, unsigned long attrs); 29 int nents, enum dma_data_direction dir); 32 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_device() argument 41 int nents, enum dma_data_direction dir, unsigned long attrs); 43 struct scatterlist *sgl, int nents, enum dma_data_direction dir); 46 struct scatterlist *sgl, int nents, enum dma_data_direction dir, in dma_direct_unmap_sg() argument 51 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in dma_direct_sync_sg_for_cpu() argument 57 dma_addr_t addr, size_t size, enum dma_data_direction dir) in dma_direct_sync_single_for_device() argument 61 swiotlb_sync_single_for_device(dev, paddr, size, dir); in dma_direct_sync_single_for_device() 64 arch_sync_dma_for_device(paddr, size, dir); in dma_direct_sync_single_for_device() [all …]
|
/linux/fs/f2fs/ |
H A D | dir.c | 47 int f2fs_init_casefolded_name(const struct inode *dir, in f2fs_init_casefolded_name() argument 50 struct super_block *sb = dir->i_sb; in f2fs_init_casefolded_name() 54 if (IS_CASEFOLDED(dir) && in f2fs_init_casefolded_name() 88 static int __f2fs_setup_filename(const struct inode *dir, in __f2fs_setup_filename() argument 105 err = f2fs_init_casefolded_name(dir, fname); in __f2fs_setup_filename() 110 f2fs_hash_filename(dir, fname); in __f2fs_setup_filename() 121 int f2fs_setup_filename(struct inode *dir, const struct qstr *iname, in f2fs_setup_filename() argument 127 err = fscrypt_setup_filename(dir, iname, lookup, &crypt_name); in f2fs_setup_filename() 131 return __f2fs_setup_filename(dir, &crypt_name, fname); in f2fs_setup_filename() 140 int f2fs_prepare_lookup(struct inode *dir, struct dentry *dentry, in f2fs_prepare_lookup() argument [all …]
|
H A D | inline.c | 353 struct f2fs_dir_entry *f2fs_find_in_inline_dir(struct inode *dir, in f2fs_find_in_inline_dir() argument 357 struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb); in f2fs_find_in_inline_dir() 363 ipage = f2fs_get_node_page(sbi, dir->i_ino); in f2fs_find_in_inline_dir() 369 inline_dentry = inline_data_addr(dir, ipage); in f2fs_find_in_inline_dir() 371 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_find_in_inline_dir() 409 static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage, in f2fs_move_inline_dirents() argument 418 page = f2fs_grab_cache_page(dir->i_mapping, 0, true); in f2fs_move_inline_dirents() 424 set_new_dnode(&dn, dir, ipage, NULL, 0); in f2fs_move_inline_dirents() 433 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents() 449 make_dentry_ptr_inline(dir, &src, inline_dentry); in f2fs_move_inline_dirents() [all …]
|
/linux/drivers/nubus/ |
H A D | nubus.c | 227 struct nubus_dir *dir) in nubus_get_root_dir() argument 229 dir->ptr = dir->base = board->directory; in nubus_get_root_dir() 230 dir->done = 0; in nubus_get_root_dir() 231 dir->mask = board->lanes; in nubus_get_root_dir() 237 int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir) in nubus_get_func_dir() argument 239 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir() 240 dir->done = 0; in nubus_get_func_dir() 241 dir->mask = fres->board->lanes; in nubus_get_func_dir() 247 struct nubus_dir *dir) in nubus_get_board_dir() argument 251 dir->ptr = dir->base = board->directory; in nubus_get_board_dir() [all …]
|
/linux/fs/hpfs/ |
H A D | namei.c | 12 static void hpfs_update_directory_times(struct inode *dir) in hpfs_update_directory_times() argument 14 time64_t t = local_to_gmt(dir->i_sb, local_get_seconds(dir->i_sb)); in hpfs_update_directory_times() 15 if (t == inode_get_mtime_sec(dir) && in hpfs_update_directory_times() 16 t == inode_get_ctime_sec(dir)) in hpfs_update_directory_times() 18 inode_set_mtime_to_ts(dir, inode_set_ctime(dir, t, 0)); in hpfs_update_directory_times() 19 hpfs_write_inode_nolock(dir); in hpfs_update_directory_times() 22 static int hpfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in hpfs_mkdir() argument 39 hpfs_lock(dir->i_sb); in hpfs_mkdir() 41 fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); in hpfs_mkdir() 44 dnode = hpfs_alloc_dnode(dir->i_sb, fno, &dno, &qbh0); in hpfs_mkdir() [all …]
|
/linux/drivers/thunderbolt/ |
H A D | property.c | 100 struct tb_property_dir *dir; in tb_property_parse() local 116 dir = __tb_property_parse_dir(block, block_len, entry->value, in tb_property_parse() 118 if (!dir) { in tb_property_parse() 122 property->value.dir = dir; in tb_property_parse() 167 struct tb_property_dir *dir; in __tb_property_parse_dir() local 169 dir = kzalloc(sizeof(*dir), GFP_KERNEL); in __tb_property_parse_dir() 170 if (!dir) in __tb_property_parse_dir() 177 dir->uuid = kmemdup(&block[dir_offset], sizeof(*dir->uuid), in __tb_property_parse_dir() 179 if (!dir->uuid) { in __tb_property_parse_dir() 180 tb_property_free_dir(dir); in __tb_property_parse_dir() [all …]
|
/linux/drivers/dma/dw-edma/ |
H A D | dw-edma-v0-core.c | 39 #define SET_RW_32(dw, dir, name, value) \ argument 41 if ((dir) == EDMA_DIR_WRITE) \ 47 #define GET_RW_32(dw, dir, name) \ argument 48 ((dir) == EDMA_DIR_WRITE \ 64 #define SET_RW_64(dw, dir, name, value) \ argument 66 if ((dir) == EDMA_DIR_WRITE) \ 72 #define GET_RW_64(dw, dir, name) \ argument 73 ((dir) == EDMA_DIR_WRITE \ 86 #define SET_RW_COMPAT(dw, dir, name, value) \ argument 88 if ((dir) == EDMA_DIR_WRITE) \ [all …]
|
H A D | dw-hdma-v0-debugfs.c | 35 #define CTX_REGISTER(dw, name, dir, ch) \ argument 36 {#name, REGS_CH_ADDR(dw, name, dir, ch)} 79 static void dw_hdma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, in dw_hdma_debugfs_regs_ch() argument 83 CTX_REGISTER(dw, ch_en, dir, ch), in dw_hdma_debugfs_regs_ch() 84 CTX_REGISTER(dw, doorbell, dir, ch), in dw_hdma_debugfs_regs_ch() 85 CTX_REGISTER(dw, prefetch, dir, ch), in dw_hdma_debugfs_regs_ch() 86 CTX_REGISTER(dw, handshake, dir, ch), in dw_hdma_debugfs_regs_ch() 87 CTX_REGISTER(dw, llp.lsb, dir, ch), in dw_hdma_debugfs_regs_ch() 88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch() 89 CTX_REGISTER(dw, cycle_sync, dir, ch), in dw_hdma_debugfs_regs_ch() [all …]
|
/linux/fs/ubifs/ |
H A D | dir.c | 47 static int inherit_flags(const struct inode *dir, umode_t mode) in inherit_flags() argument 50 const struct ubifs_inode *ui = ubifs_inode(dir); in inherit_flags() 52 if (!S_ISDIR(dir->i_mode)) in inherit_flags() 82 struct inode *ubifs_new_inode(struct ubifs_info *c, struct inode *dir, in ubifs_new_inode() argument 103 inode_init_owner(&nop_mnt_idmap, inode, dir, mode); in ubifs_new_inode() 108 err = fscrypt_prepare_new_inode(dir, inode, &encrypted); in ubifs_new_inode() 139 ui->flags = inherit_flags(dir, mode); in ubifs_new_inode() 216 static struct dentry *ubifs_lookup(struct inode *dir, struct dentry *dentry, in ubifs_lookup() argument 223 struct ubifs_info *c = dir->i_sb->s_fs_info; in ubifs_lookup() 226 dbg_gen("'%pd' in dir ino %lu", dentry, dir->i_ino); in ubifs_lookup() [all …]
|
/linux/fs/ocfs2/ |
H A D | dir.c | 58 struct inode *dir, 69 static int ocfs2_supports_dir_trailer(struct inode *dir) in ocfs2_supports_dir_trailer() argument 71 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer() 73 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer() 76 return ocfs2_meta_ecc(osb) || ocfs2_dir_indexed(dir); in ocfs2_supports_dir_trailer() 87 static int ocfs2_new_dir_wants_trailer(struct inode *dir) in ocfs2_new_dir_wants_trailer() argument 89 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer() 117 static int ocfs2_skip_dir_trailer(struct inode *dir, in ocfs2_skip_dir_trailer() argument 124 if (!ocfs2_supports_dir_trailer(dir)) in ocfs2_skip_dir_trailer() 151 static int ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle, in ocfs2_dx_dir_link_trailer() argument [all …]
|
/linux/fs/bfs/ |
H A D | dir.c | 24 static int bfs_add_entry(struct inode *dir, const struct qstr *child, int ino); 25 static struct buffer_head *bfs_find_entry(struct inode *dir, 31 struct inode *dir = file_inode(f); in bfs_readdir() local 40 dir->i_sb->s_id, dir->i_ino); in bfs_readdir() 44 while (ctx->pos < dir->i_size) { in bfs_readdir() 46 block = BFS_I(dir)->i_sblock + (ctx->pos >> BFS_BSIZE_BITS); in bfs_readdir() 47 bh = sb_bread(dir->i_sb, block); in bfs_readdir() 65 } while ((offset < BFS_BSIZE) && (ctx->pos < dir->i_size)); in bfs_readdir() 78 static int bfs_create(struct mnt_idmap *idmap, struct inode *dir, in bfs_create() argument 83 struct super_block *s = dir->i_sb; in bfs_create() [all …]
|
/linux/fs/exfat/ |
H A D | namei.c | 241 clu.dir != EXFAT_EOF_CLUSTER) { in exfat_search_empty_slot() 256 clu.dir++; in exfat_search_empty_slot() 258 clu.dir = EXFAT_EOF_CLUSTER; in exfat_search_empty_slot() 260 if (exfat_get_next_cluster(sb, &clu.dir)) in exfat_search_empty_slot() 270 if (dentry == total_entries || clu.dir == EXFAT_EOF_CLUSTER) in exfat_search_empty_slot() 359 if (exfat_zeroed_cluster(inode, clu.dir)) in exfat_find_empty_entry() 363 ei->start_clu = clu.dir; in exfat_find_empty_entry() 364 p_dir->dir = clu.dir; in exfat_find_empty_entry() 373 exfat_chain_cont_cluster(sb, p_dir->dir, p_dir->size); in exfat_find_empty_entry() 379 if (exfat_ent_set(sb, last_clu, clu.dir)) in exfat_find_empty_entry() [all …]
|
/linux/tools/testing/selftests/net/netfilter/ |
H A D | nft_nat.sh | 124 for dir in "in" "out" ; do 126 if ! ip netns exec "$ns0" nft list counter inet filter "${ns}${dir}" | grep -q "$expect";then 127 bad_counter "$ns0" "$ns${dir}" "$expect" "check_ns0_counters 4" 132 if ! ip netns exec "$ns0" nft list counter inet filter "${ns}${dir}6" | grep -q "$expect";then 133 bad_counter "$ns0" "$ns${dir}6" "$expect" "check_ns0_counters 5" 179 for dir in "in6" "out6" ; do 180 if ! ip netns exec "$ns0" nft list counter inet filter "ns1${dir}" | grep -q "$expect";then 181 bad_counter "$ns0" ns1$dir "$expect" "test_local_dnat6 1" 187 for dir in "in6" "out6" ; do 188 if ! ip netns exec "$ns0" nft list counter inet filter "ns2${dir}" | grep -q "$expect";then [all …]
|
/linux/net/ipv4/netfilter/ |
H A D | nf_nat_h323.c | 98 int dir = CTINFO2DIR(ctinfo); in set_sig_addr() local 105 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr() 106 port == info->sig_port[dir]) { in set_sig_addr() 118 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr() 119 info->sig_port[!dir]); in set_sig_addr() 122 &ct->tuplehash[!dir]. in set_sig_addr() 124 info->sig_port[!dir]); in set_sig_addr() 125 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr() 126 port == info->sig_port[dir]) { in set_sig_addr() 130 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr() [all …]
|
/linux/fs/nilfs2/ |
H A D | namei.c | 54 nilfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in nilfs_lookup() argument 63 res = nilfs_inode_by_name(dir, &dentry->d_name, &ino); in nilfs_lookup() 69 inode = nilfs_iget(dir->i_sb, NILFS_I(dir)->i_root, ino); in nilfs_lookup() 71 nilfs_error(dir->i_sb, in nilfs_lookup() 88 static int nilfs_create(struct mnt_idmap *idmap, struct inode *dir, in nilfs_create() argument 95 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_create() 98 inode = nilfs_new_inode(dir, mode); in nilfs_create() 108 err = nilfs_transaction_commit(dir->i_sb); in nilfs_create() 110 nilfs_transaction_abort(dir->i_sb); in nilfs_create() 116 nilfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in nilfs_mknod() argument [all …]
|
H A D | dir.c | 92 struct inode *dir = mapping->host; in nilfs_commit_chunk() local 100 if (pos + copied > dir->i_size) in nilfs_commit_chunk() 101 i_size_write(dir, pos + copied); in nilfs_commit_chunk() 102 if (IS_DIRSYNC(dir)) in nilfs_commit_chunk() 104 err = nilfs_set_file_dirty(dir, nr_dirty); in nilfs_commit_chunk() 111 struct inode *dir = folio->mapping->host; in nilfs_check_folio() local 112 struct super_block *sb = dir->i_sb; in nilfs_check_folio() 113 unsigned int chunk_size = nilfs_chunk_size(dir); in nilfs_check_folio() 119 if (dir->i_size < folio_pos(folio) + limit) { in nilfs_check_folio() 120 limit = dir->i_size - folio_pos(folio); in nilfs_check_folio() [all …]
|