Home
last modified time | relevance | path

Searched refs:inode_u (Results 1 – 9 of 9) sorted by relevance

/linux/fs/bcachefs/
H A Dfs-common.c206 inode_u->bi_ctime = now; in bch2_link_trans()
207 ret = bch2_inode_nlink_inc(inode_u); in bch2_link_trans()
215 if (bch2_reinherit_attrs(inode_u, dir_u)) { in bch2_link_trans()
225 mode_to_type(inode_u->bi_mode), in bch2_link_trans()
231 inode_u->bi_dir = dir.inum; in bch2_link_trans()
232 inode_u->bi_dir_offset = dir_offset; in bch2_link_trans()
245 struct bch_inode_unpacked *inode_u, in bch2_unlink_trans() argument
286 if (inode_u->bi_subvol) { in bch2_unlink_trans()
312 bch2_inode_nlink_dec(trans, inode_u); in bch2_unlink_trans()
317 inode_u->bi_dir = 0; in bch2_unlink_trans()
[all …]
H A Dacl.c317 struct bch_inode_unpacked *inode_u, in bch2_set_acl_trans() argument
320 struct bch_hash_info hash_info = bch2_hash_info_init(trans->c, inode_u); in bch2_set_acl_trans()
324 !S_ISDIR(inode_u->bi_mode)) in bch2_set_acl_trans()
353 struct bch_inode_unpacked inode_u; in bch2_set_acl() local
365 bch2_inode_peek(trans, &inode_iter, &inode_u, inode_inum(inode), in bch2_set_acl()
370 mode = inode_u.bi_mode; in bch2_set_acl()
378 ret = bch2_set_acl_trans(trans, inode_inum(inode), &inode_u, acl, type); in bch2_set_acl()
382 inode_u.bi_ctime = bch2_current_time(c); in bch2_set_acl()
383 inode_u.bi_mode = mode; in bch2_set_acl()
385 ret = bch2_inode_write(trans, &inode_iter, &inode_u) ?: in bch2_set_acl()
[all …]
H A Dinode.c807 memset(inode_u, 0, sizeof(*inode_u)); in bch2_inode_init_early()
810 get_random_bytes(&inode_u->bi_hash_seed, sizeof(inode_u->bi_hash_seed)); in bch2_inode_init_early()
817 inode_u->bi_mode = mode; in bch2_inode_init_late()
818 inode_u->bi_uid = uid; in bch2_inode_init_late()
819 inode_u->bi_gid = gid; in bch2_inode_init_late()
820 inode_u->bi_dev = rdev; in bch2_inode_init_late()
821 inode_u->bi_atime = now; in bch2_inode_init_late()
822 inode_u->bi_mtime = now; in bch2_inode_init_late()
823 inode_u->bi_ctime = now; in bch2_inode_init_late()
824 inode_u->bi_otime = now; in bch2_inode_init_late()
[all …]
H A Dfs.c87 struct bch_inode_unpacked inode_u; in bch2_write_inode() local
465 struct bch_inode_unpacked inode_u; in bch2_vfs_inode_get() local
486 struct bch_inode_unpacked inode_u; in __bch2_create() local
536 inum.inum = inode_u.bi_inum; in __bch2_create()
619 struct bch_inode_unpacked inode_u; in bch2_lookup_trans() local
632 !bkey_eq(k.k->p, POS(inode_u.bi_dir, inode_u.bi_dir_offset)), in bch2_lookup_trans()
704 inode_inum(inode), &inode_u, in __bch2_link()
756 &inode_u, &dentry->d_name, in __bch2_unlink()
766 if (inode_u.bi_subvol) { in __bch2_unlink()
1064 inode_u.bi_mode, &acl); in bch2_setattr_nonsize()
[all …]
H A Dio_misc.c231 struct bch_inode_unpacked inode_u; in truncate_set_isize() local
234 ret = __bch2_inode_peek(trans, &iter, &inode_u, inum, BTREE_ITER_intent, warn) ?: in truncate_set_isize()
235 (inode_u.bi_size = new_i_size, 0) ?: in truncate_set_isize()
236 bch2_inode_write(trans, &iter, &inode_u); in truncate_set_isize()
322 struct bch_inode_unpacked inode_u; in adjust_i_size() local
328 ret = __bch2_inode_peek(trans, &iter, &inode_u, inum, BTREE_ITER_intent, warn); in adjust_i_size()
333 if (MAX_LFS_FILESIZE - inode_u.bi_size < len) { in adjust_i_size()
338 if (offset >= inode_u.bi_size) { in adjust_i_size()
344 inode_u.bi_size += len; in adjust_i_size()
345 inode_u.bi_mtime = inode_u.bi_ctime = bch2_current_time(trans->c); in adjust_i_size()
[all …]
H A Dxattr.c165 struct bch_inode_unpacked *inode_u, in bch2_xattr_set() argument
175 bch2_inode_peek(trans, &inode_iter, inode_u, inum, BTREE_ITER_intent); in bch2_xattr_set()
179 inode_u->bi_ctime = bch2_current_time(c); in bch2_xattr_set()
181 ret = bch2_inode_write(trans, &inode_iter, inode_u); in bch2_xattr_set()
351 struct bch_inode_unpacked inode_u; in bch2_xattr_set_handler() local
356 bch2_xattr_set(trans, inode_inum(inode), &inode_u, in bch2_xattr_set_handler()
359 (bch2_inode_update_after_write(trans, inode, &inode_u, ATTR_CTIME), 0)); in bch2_xattr_set_handler()
H A Dfs-io.c367 struct bch_inode_unpacked *inode_u, in bch2_extend() argument
378 ret = filemap_write_and_wait_range(mapping, inode_u->bi_size, S64_MAX); in bch2_extend()
392 struct bch_inode_unpacked inode_u; in bchfs_truncate() local
412 ret = bch2_inode_find_by_inum(c, inode_inum(inode), &inode_u); in bchfs_truncate()
426 inode->v.i_size < inode_u.bi_size, in bchfs_truncate()
428 (u64) inode->v.i_size, inode_u.bi_size); in bchfs_truncate()
431 ret = bch2_extend(idmap, inode, &inode_u, iattr); in bchfs_truncate()
453 if (iattr->ia_size > inode_u.bi_size) in bchfs_truncate()
455 inode_u.bi_size, in bchfs_truncate()
H A Dreflink.c567 struct bch_inode_unpacked inode_u; in bch2_remap_range() local
572 ret2 = bch2_inode_peek(trans, &inode_iter, &inode_u, in bch2_remap_range()
576 inode_u.bi_size < new_i_size) { in bch2_remap_range()
577 inode_u.bi_size = new_i_size; in bch2_remap_range()
578 ret2 = bch2_inode_write(trans, &inode_iter, &inode_u) ?: in bch2_remap_range()
H A Dacl.h44 struct bch_inode_unpacked *inode_u, in bch2_set_acl_trans() argument