/fs/overlayfs/ |
D | dir.c | 28 int err; in ovl_cleanup() local 32 err = ovl_do_rmdir(wdir, wdentry); in ovl_cleanup() 34 err = ovl_do_unlink(wdir, wdentry); in ovl_cleanup() 37 if (err) { in ovl_cleanup() 39 wdentry, err); in ovl_cleanup() 42 return err; in ovl_cleanup() 67 int err; in ovl_whiteout() local 75 err = ovl_do_whiteout(wdir, whiteout); in ovl_whiteout() 76 if (err) { in ovl_whiteout() 78 whiteout = ERR_PTR(err); in ovl_whiteout() [all …]
|
D | copy_up.c | 204 int err = 0; in ovl_set_attr() local 211 err = notify_change(upperdentry, &attr, NULL); in ovl_set_attr() 213 if (!err) { in ovl_set_attr() 219 err = notify_change(upperdentry, &attr, NULL); in ovl_set_attr() 221 if (!err) in ovl_set_attr() 224 return err; in ovl_set_attr() 287 int err; in ovl_set_origin() local 303 err = ovl_check_setxattr(dentry, upper, OVL_XATTR_ORIGIN, fh, in ovl_set_origin() 307 return err; in ovl_set_origin() 314 int err; in ovl_set_upper_fh() local [all …]
|
D | super.c | 300 int err; in ovl_statfs() local 304 err = vfs_statfs(&path, buf); in ovl_statfs() 305 if (!err) { in ovl_statfs() 310 return err; in ovl_statfs() 488 int err; in ovl_parse_opt() local 597 err = ovl_parse_redirect_mode(config, config->redirect_mode); in ovl_parse_opt() 598 if (err) in ovl_parse_opt() 599 return err; in ovl_parse_opt() 641 int err; in ovl_workdir_create() local 658 err = -EEXIST; in ovl_workdir_create() [all …]
|
D | namei.c | 110 int err; in ovl_get_fh() local 131 err = ovl_check_fh_len(fh, res); in ovl_get_fh() 132 if (err < 0) { in ovl_get_fh() 133 if (err == -ENODATA) in ovl_get_fh() 202 int err; in ovl_lookup_single() local 207 err = PTR_ERR(this); in ovl_lookup_single() 209 if (err == -ENOENT || err == -ENAMETOOLONG) in ovl_lookup_single() 218 err = -EREMOTE; in ovl_lookup_single() 238 err = ovl_check_metacopy_xattr(this); in ovl_lookup_single() 239 if (err < 0) in ovl_lookup_single() [all …]
|
/fs/ubifs/ |
D | auth.c | 35 int err; in __ubifs_node_calc_hash() local 39 err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash); in __ubifs_node_calc_hash() 40 if (err < 0) in __ubifs_node_calc_hash() 41 return err; in __ubifs_node_calc_hash() 57 int err; in ubifs_hash_calc_hmac() local 61 err = crypto_shash_digest(shash, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac() 62 if (err < 0) in ubifs_hash_calc_hmac() 63 return err; in ubifs_hash_calc_hmac() 83 int err; in ubifs_prepare_auth_node() local 95 err = crypto_shash_final(hash_desc, hash); in ubifs_prepare_auth_node() [all …]
|
D | tnc.c | 136 int err; in ins_clr_old_idx_znode() local 143 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode() 144 if (err) in ins_clr_old_idx_znode() 145 return err; in ins_clr_old_idx_znode() 152 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode() 153 if (err) in ins_clr_old_idx_znode() 154 return err; in ins_clr_old_idx_znode() 248 int err; in dirty_cow_znode() local 256 err = add_idx_dirt(c, zbr->lnum, zbr->len); in dirty_cow_znode() 257 if (unlikely(err)) in dirty_cow_znode() [all …]
|
D | dir.c | 79 int err; in ubifs_new_inode() local 85 err = fscrypt_get_encryption_info(dir); in ubifs_new_inode() 86 if (err) { in ubifs_new_inode() 87 ubifs_err(c, "fscrypt_get_encryption_info failed: %i", err); in ubifs_new_inode() 88 return ERR_PTR(err); in ubifs_new_inode() 174 err = fscrypt_inherit_context(dir, inode, &encrypted, true); in ubifs_new_inode() 175 if (err) { in ubifs_new_inode() 176 ubifs_err(c, "fscrypt_inherit_context failed: %i", err); in ubifs_new_inode() 179 return ERR_PTR(err); in ubifs_new_inode() 202 int err; in ubifs_lookup() local [all …]
|
D | journal.c | 100 int err = 0, err1, retries = 0, avail, lnum, offs, squeeze; in reserve_space() local 114 err = -EROFS; in reserve_space() 130 err = lnum; in reserve_space() 131 if (err != -ENOSPC) in reserve_space() 144 err = lnum; in reserve_space() 145 if (err != -ENOSPC) in reserve_space() 146 return err; in reserve_space() 162 return err; in reserve_space() 177 err = ubifs_return_leb(c, lnum); in reserve_space() 178 if (err) in reserve_space() [all …]
|
D | gc.c | 71 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local 79 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head() 80 if (err) in switch_gc_head() 81 return err; in switch_gc_head() 87 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head() 88 if (err) in switch_gc_head() 89 return err; in switch_gc_head() 91 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head() 92 if (err) in switch_gc_head() 93 return err; in switch_gc_head() [all …]
|
D | recovery.c | 101 int err, offs, len; in get_master_node() local 108 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0); in get_master_node() 109 if (err && err != -EBADMSG) in get_master_node() 177 err = -EINVAL; in get_master_node() 182 return err; in get_master_node() 195 int err = 0, lnum = UBIFS_MST_LNUM, sz = c->mst_node_alsz; in write_rcvrd_mst_node() local 203 err = ubifs_prepare_node_hmac(c, mst, UBIFS_MST_NODE_SZ, in write_rcvrd_mst_node() 205 if (err) in write_rcvrd_mst_node() 207 err = ubifs_leb_change(c, lnum, mst, sz); in write_rcvrd_mst_node() 208 if (err) in write_rcvrd_mst_node() [all …]
|
D | super.c | 57 int err; in validate_inode() local 85 err = dbg_check_dir(c, inode); in validate_inode() 86 return err; in validate_inode() 91 int err; in ubifs_iget() local 109 err = -ENOMEM; in ubifs_iget() 115 err = ubifs_tnc_lookup(c, &key, ino); in ubifs_iget() 116 if (err) in ubifs_iget() 147 err = validate_inode(c, inode); in ubifs_iget() 148 if (err) in ubifs_iget() 159 err = -ENOMEM; in ubifs_iget() [all …]
|
D | xattr.c | 84 int err, names_len; in create_xattr() local 109 err = ubifs_budget_space(c, &req); in create_xattr() 110 if (err) in create_xattr() 111 return err; in create_xattr() 115 err = PTR_ERR(inode); in create_xattr() 130 err = -ENOMEM; in create_xattr() 152 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr() 153 if (err) in create_xattr() 175 return err; in create_xattr() 193 int err; in change_xattr() local [all …]
|
/fs/ext4/ |
D | ext4_jbd2.c | 71 int err; in __ext4_journal_start_sb() local 74 err = ext4_journal_check_start(sb); in __ext4_journal_start_sb() 75 if (err < 0) in __ext4_journal_start_sb() 76 return ERR_PTR(err); in __ext4_journal_start_sb() 88 int err; in __ext4_journal_stop() local 96 err = handle->h_err; in __ext4_journal_stop() 99 return err ? err : rc; in __ext4_journal_stop() 105 if (!err) in __ext4_journal_stop() 106 err = rc; in __ext4_journal_stop() 107 if (err) in __ext4_journal_stop() [all …]
|
D | ioctl.c | 117 int err; in swap_inode_boot_loader() local 137 err = -EINVAL; in swap_inode_boot_loader() 143 err = -EPERM; in swap_inode_boot_loader() 148 err = filemap_write_and_wait(inode->i_mapping); in swap_inode_boot_loader() 149 if (err) in swap_inode_boot_loader() 152 err = filemap_write_and_wait(inode_bl->i_mapping); in swap_inode_boot_loader() 153 if (err) in swap_inode_boot_loader() 165 err = -EINVAL; in swap_inode_boot_loader() 189 err = dquot_initialize(inode); in swap_inode_boot_loader() 190 if (err) in swap_inode_boot_loader() [all …]
|
/fs/nilfs2/ |
D | namei.c | 37 int err = nilfs_add_link(dentry, inode); in nilfs_add_nondir() local 39 if (!err) { in nilfs_add_nondir() 46 return err; in nilfs_add_nondir() 80 int err; in nilfs_create() local 82 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_create() 83 if (err) in nilfs_create() 84 return err; in nilfs_create() 86 err = PTR_ERR(inode); in nilfs_create() 92 err = nilfs_add_nondir(dentry, inode); in nilfs_create() 94 if (!err) in nilfs_create() [all …]
|
/fs/hfsplus/ |
D | attributes.c | 140 int err = 0; in hfsplus_find_attr() local 150 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr() 151 if (err) in hfsplus_find_attr() 153 err = hfs_brec_find(fd, hfs_find_rec_by_key); in hfsplus_find_attr() 154 if (err) in hfsplus_find_attr() 157 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr() 158 if (err) in hfsplus_find_attr() 160 err = hfs_brec_find(fd, hfs_find_1st_rec_by_cnid); in hfsplus_find_attr() 161 if (err) in hfsplus_find_attr() 166 return err; in hfsplus_find_attr() [all …]
|
D | catalog.c | 46 int len, err; in hfsplus_cat_build_key() local 49 err = hfsplus_asc2uni(sb, &key->cat.name, HFSPLUS_MAX_STRLEN, in hfsplus_cat_build_key() 51 if (unlikely(err < 0)) in hfsplus_cat_build_key() 52 return err; in hfsplus_cat_build_key() 180 int err; in hfsplus_fill_cat_thread() local 185 err = hfsplus_asc2uni(sb, &entry->thread.nodeName, HFSPLUS_MAX_STRLEN, in hfsplus_fill_cat_thread() 187 if (unlikely(err < 0)) in hfsplus_fill_cat_thread() 188 return err; in hfsplus_fill_cat_thread() 198 int err; in hfsplus_find_cat() local 202 err = hfs_brec_read(fd, &tmp, sizeof(hfsplus_cat_entry)); in hfsplus_find_cat() [all …]
|
/fs/ext2/ |
D | namei.c | 42 int err = ext2_add_link(dentry, inode); in ext2_add_nondir() local 43 if (!err) { in ext2_add_nondir() 49 return err; in ext2_add_nondir() 98 int err; in ext2_create() local 100 err = dquot_initialize(dir); in ext2_create() 101 if (err) in ext2_create() 102 return err; in ext2_create() 129 int err; in ext2_mknod() local 131 err = dquot_initialize(dir); in ext2_mknod() 132 if (err) in ext2_mknod() [all …]
|
/fs/crypto/ |
D | hooks.c | 32 int err; in fscrypt_file_open() local 35 err = fscrypt_require_key(inode); in fscrypt_file_open() 36 if (err) in fscrypt_file_open() 37 return err; in fscrypt_file_open() 45 err = -EPERM; in fscrypt_file_open() 48 return err; in fscrypt_file_open() 55 int err; in __fscrypt_prepare_link() local 57 err = fscrypt_require_key(dir); in __fscrypt_prepare_link() 58 if (err) in __fscrypt_prepare_link() 59 return err; in __fscrypt_prepare_link() [all …]
|
/fs/f2fs/ |
D | namei.c | 32 int err; in f2fs_new_inode() local 41 err = -ENOSPC; in f2fs_new_inode() 59 err = insert_inode_locked(inode); in f2fs_new_inode() 60 if (err) { in f2fs_new_inode() 61 err = -EINVAL; in f2fs_new_inode() 72 err = dquot_initialize(inode); in f2fs_new_inode() 73 if (err) in f2fs_new_inode() 128 trace_f2fs_new_inode(inode, err); in f2fs_new_inode() 133 return ERR_PTR(err); in f2fs_new_inode() 135 trace_f2fs_new_inode(inode, err); in f2fs_new_inode() [all …]
|
D | recovery.c | 73 int err; in add_fsync_inode() local 79 err = dquot_initialize(inode); in add_fsync_inode() 80 if (err) in add_fsync_inode() 84 err = dquot_alloc_inode(inode); in add_fsync_inode() 85 if (err) in add_fsync_inode() 96 return ERR_PTR(err); in add_fsync_inode() 120 int err = 0; in recover_dentry() local 129 err = PTR_ERR(entry); in recover_dentry() 142 err = -ENAMETOOLONG; in recover_dentry() 154 err = PTR_ERR(einode); in recover_dentry() [all …]
|
/fs/sdcardfs/ |
D | file.c | 29 int err; in sdcardfs_read() local 50 err = vfs_read(lower_file, buf, count, ppos); in sdcardfs_read() 52 if (err >= 0) in sdcardfs_read() 56 return err; in sdcardfs_read() 62 int err; in sdcardfs_write() local 74 err = vfs_write(lower_file, buf, count, ppos); in sdcardfs_write() 76 if (err >= 0) { in sdcardfs_write() 85 return err; in sdcardfs_write() 90 int err; in sdcardfs_readdir() local 97 err = iterate_dir(lower_file, ctx); in sdcardfs_readdir() [all …]
|
/fs/verity/ |
D | enable.c | 26 int err; in build_merkle_tree_level() local 50 err = PTR_ERR(src_page); in build_merkle_tree_level() 53 err, i); in build_merkle_tree_level() 54 return err; in build_merkle_tree_level() 61 err = PTR_ERR(src_page); in build_merkle_tree_level() 64 err, params->level_start[level - 1] + i); in build_merkle_tree_level() 65 return err; in build_merkle_tree_level() 69 err = fsverity_hash_page(params, inode, req, src_page, in build_merkle_tree_level() 72 if (err) in build_merkle_tree_level() 73 return err; in build_merkle_tree_level() [all …]
|
/fs/fat/ |
D | namei_msdos.c | 124 int err; in msdos_find() local 126 err = msdos_format_name(name, len, msdos_name, &sbi->options); in msdos_find() 127 if (err) in msdos_find() 130 err = fat_scan(dir, msdos_name, sinfo); in msdos_find() 131 if (!err && sbi->options.dotsOK) { in msdos_find() 134 err = -ENOENT; in msdos_find() 137 err = -ENOENT; in msdos_find() 139 if (err) in msdos_find() 142 return err; in msdos_find() 207 int err; in msdos_lookup() local [all …]
|
/fs/reiserfs/ |
D | xattr.c | 133 int err = -ENODATA; in open_xa_root() local 136 err = xattr_mkdir(d_inode(privroot), xaroot, 0700); in open_xa_root() 137 if (err) { in open_xa_root() 139 xaroot = ERR_PTR(err); in open_xa_root() 164 int err = -ENODATA; in open_xa_dir() local 167 err = xattr_mkdir(d_inode(xaroot), xadir, 0700); in open_xa_dir() 168 if (err) { in open_xa_dir() 170 xadir = ERR_PTR(err); in open_xa_dir() 188 int err; member 211 dbuf->err = PTR_ERR(dentry); in fill_with_dentries() [all …]
|