Home
last modified time | relevance | path

Searched refs:i_inode (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/fs/gfs2/
Dglops.c312 int isreg = ip && S_ISREG(ip->i_inode.i_mode); in inode_go_sync()
318 unmap_shared_mapping_range(ip->i_inode.i_mapping, 0, 0); in inode_go_sync()
319 inode_dio_wait(&ip->i_inode); in inode_go_sync()
330 struct address_space *mapping = ip->i_inode.i_mapping; in inode_go_sync()
371 forget_all_cached_acls(&ip->i_inode); in inode_go_inval()
372 security_inode_invalidate_secctx(&ip->i_inode); in inode_go_inval()
383 if (ip && S_ISREG(ip->i_inode.i_mode)) in inode_go_inval()
384 truncate_inode_pages(ip->i_inode.i_mapping, 0); in inode_go_inval()
415 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
416 ip->i_inode.i_rdev = 0; in gfs2_dinode_in()
[all …]
Dxattr.c83 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_EA)) in ea_foreach_i()
129 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_IN)) { in ea_foreach()
135 end = eablk + GFS2_SB(&ip->i_inode)->sd_inptrs; in ea_foreach()
228 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_dealloc_unstuffed()
289 gfs2_add_inode_blocks(&ip->i_inode, -1); in ea_dealloc_unstuffed()
307 ip->i_inode.i_ctime = current_time(&ip->i_inode); in ea_dealloc_unstuffed()
308 __mark_inode_dirty(&ip->i_inode, I_DIRTY_DATASYNC); in ea_dealloc_unstuffed()
323 error = gfs2_rindex_update(GFS2_SB(&ip->i_inode)); in ea_remove_unstuffed()
442 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_iter_unstuffed()
622 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in ea_alloc_blk()
[all …]
Dinode.c354 error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); in create_ok()
359 if (!dip->i_inode.i_nlink) in create_ok()
364 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok()
373 if (GFS2_SB(&dip->i_inode)->sd_args.ar_suiddir && in munge_mode_uid_gid()
374 (dip->i_inode.i_mode & S_ISUID) && in munge_mode_uid_gid()
375 !uid_eq(dip->i_inode.i_uid, GLOBAL_ROOT_UID)) { in munge_mode_uid_gid()
378 else if (!uid_eq(dip->i_inode.i_uid, current_fsuid())) in munge_mode_uid_gid()
380 inode->i_uid = dip->i_inode.i_uid; in munge_mode_uid_gid()
384 if (dip->i_inode.i_mode & S_ISGID) { in munge_mode_uid_gid()
387 inode->i_gid = dip->i_inode.i_gid; in munge_mode_uid_gid()
[all …]
Ddir.c111 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_JD)) { in gfs2_dir_get_existing_buffer()
131 if (ip->i_inode.i_size < offset + size) in gfs2_dir_write_stuffed()
132 i_size_write(&ip->i_inode, offset + size); in gfs2_dir_write_stuffed()
133 ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); in gfs2_dir_write_stuffed()
155 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_dir_write_data()
193 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_write_data()
228 if (ip->i_inode.i_size < offset + copied) in gfs2_dir_write_data()
229 i_size_write(&ip->i_inode, offset + copied); in gfs2_dir_write_data()
230 ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); in gfs2_dir_write_data()
270 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_dir_read_data()
[all …]
Dbmap.c58 struct inode *inode = &ip->i_inode; in gfs2_unstuffer_page()
133 if (i_size_read(&ip->i_inode)) { in gfs2_unstuff_dinode()
142 gfs2_trans_remove_revoke(GFS2_SB(&ip->i_inode), block, 1); in gfs2_unstuff_dinode()
162 if (i_size_read(&ip->i_inode)) { in gfs2_unstuff_dinode()
164 gfs2_add_inode_blocks(&ip->i_inode, 1); in gfs2_unstuff_dinode()
165 di->di_blocks = cpu_to_be64(gfs2_get_inode_blocks(&ip->i_inode)); in gfs2_unstuff_dinode()
778 gfs2_add_inode_blocks(&ip->i_inode, alloced); in gfs2_iomap_alloc()
1000 if (&ip->i_inode == sdp->sd_rindex) { in gfs2_write_lock()
1022 if (&ip->i_inode == sdp->sd_rindex) { in gfs2_write_unlock()
1449 ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); in trunc_start()
[all …]
Dquota.h43 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check()
55 ret = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid, ap); in gfs2_quota_lock_check()
Dsuper.c420 str->di_mode = cpu_to_be32(ip->i_inode.i_mode); in gfs2_dinode_out()
421 str->di_uid = cpu_to_be32(i_uid_read(&ip->i_inode)); in gfs2_dinode_out()
422 str->di_gid = cpu_to_be32(i_gid_read(&ip->i_inode)); in gfs2_dinode_out()
423 str->di_nlink = cpu_to_be32(ip->i_inode.i_nlink); in gfs2_dinode_out()
424 str->di_size = cpu_to_be64(i_size_read(&ip->i_inode)); in gfs2_dinode_out()
425 str->di_blocks = cpu_to_be64(gfs2_get_inode_blocks(&ip->i_inode)); in gfs2_dinode_out()
426 str->di_atime = cpu_to_be64(ip->i_inode.i_atime.tv_sec); in gfs2_dinode_out()
427 str->di_mtime = cpu_to_be64(ip->i_inode.i_mtime.tv_sec); in gfs2_dinode_out()
428 str->di_ctime = cpu_to_be64(ip->i_inode.i_ctime.tv_sec); in gfs2_dinode_out()
436 str->di_payload_format = cpu_to_be32(S_ISDIR(ip->i_inode.i_mode) && in gfs2_dinode_out()
[all …]
Dquota.c384 bh_map.b_size = BIT(ip->i_inode.i_blkbits); in bh_get()
385 error = gfs2_block_map(&ip->i_inode, block, &bh_map, 0); in bh_get()
535 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_qa_get()
566 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_hold()
585 error = qdsb_get(sdp, make_kqid_uid(ip->i_inode.i_uid), qd); in gfs2_quota_hold()
591 error = qdsb_get(sdp, make_kqid_gid(ip->i_inode.i_gid), qd); in gfs2_quota_hold()
598 !uid_eq(uid, ip->i_inode.i_uid)) { in gfs2_quota_hold()
607 !gid_eq(gid, ip->i_inode.i_gid)) { in gfs2_quota_hold()
624 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_unhold()
697 struct inode *inode = &ip->i_inode; in gfs2_write_buf_to_page()
[all …]
Drgrp.c577 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in check_and_update_goal()
880 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in read_rindex_entry()
886 if (pos >= i_size_read(&ip->i_inode)) in read_rindex_entry()
978 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ri_update()
1539 struct inode *inode = &ip->i_inode; in rg_mblk_search()
1948 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_orlov_skip()
2006 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_inplace_reserve()
2027 if (S_ISDIR(ip->i_inode.i_mode) && (ap->aflags & GFS2_AF_ORLOV)) in gfs2_inplace_reserve()
2347 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_alloc_blocks()
2412 gfs2_quota_change(ip, *nblocks, ip->i_inode.i_uid, ip->i_inode.i_gid); in gfs2_alloc_blocks()
[all …]
Dmeta_io.c401 struct address_space *mapping = ip->i_inode.i_mapping; in gfs2_getjdatabuf()
402 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_getjdatabuf()
436 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_journal_wipe()
477 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_meta_indirect_buffer()
Dbmap.h33 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_write_calc_reserv()
Dfile.c605 !IS_NOATIME(&ip->i_inode)) { in gfs2_mmap()
688 if (S_ISREG(ip->i_inode.i_mode)) { in gfs2_open()
833 if (offset + len > i_size_read(&ip->i_inode)) in gfs2_file_direct_write()
1036 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in calc_max_reserv()
1249 if (__mandatory_lock(&ip->i_inode) && fl->fl_type != F_UNLCK) in gfs2_lock()
1297 error = gfs2_glock_get(GFS2_SB(&ip->i_inode), ip->i_no_addr, in do_flock()
1318 gfs2_assert_warn(GFS2_SB(&ip->i_inode), !error); in do_flock()
Dlog.h51 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_add_inode()
Dincore.h405 struct inode i_inode; member
436 return container_of(inode, struct gfs2_inode, i_inode); in GFS2_I()
895 return GFS2_SB(&ip->i_inode)->sd_sb.sb_bsize - sizeof(struct gfs2_dinode); in gfs2_max_stuffed_size()
Dlog.c637 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write()
643 filemap_fdatawrite(ip->i_inode.i_mapping); in gfs2_ordered_write()
658 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
661 filemap_fdatawait(ip->i_inode.i_mapping); in gfs2_ordered_wait()
669 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_del_inode()
Dinode.h42 return S_ISDIR(ip->i_inode.i_mode); in gfs2_is_dir()
Dmain.c38 inode_init_once(&ip->i_inode); in gfs2_init_inode_once()
Daops.c435 u64 dsize = i_size_read(&ip->i_inode); in stuffed_readpage()
514 struct address_space *mapping = ip->i_inode.i_mapping; in gfs2_internal_read()
Dutil.c445 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_consist_inode_i()
Drecovery.c42 error = gfs2_extent_map(&ip->i_inode, blk, &new, &dblock, &extlen); in gfs2_replay_read_block()
Dglock.c837 if (ip && !igrab(&ip->i_inode)) in gfs2_try_evict()
845 d_prune_aliases(&ip->i_inode); in gfs2_try_evict()
846 iput(&ip->i_inode); in gfs2_try_evict()
Dtrace_gfs2.h531 (iomap->addr >> ip->i_inode.i_blkbits);