Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/fs/overlayfs/
Ddir.c28 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
77 err = ovl_do_whiteout(wdir, whiteout); in ovl_whiteout()
78 if (err) { in ovl_whiteout()
80 whiteout = ERR_PTR(err); in ovl_whiteout()
[all …]
Dcopy_up.c256 int err = 0; in ovl_set_attr() local
263 err = notify_change(upperdentry, &attr, NULL); in ovl_set_attr()
265 if (!err) { in ovl_set_attr()
271 err = notify_change(upperdentry, &attr, NULL); in ovl_set_attr()
273 if (!err) in ovl_set_attr()
276 return err; in ovl_set_attr()
285 int err; in ovl_encode_real_fh() local
304 err = -EIO; in ovl_encode_real_fh()
329 return ERR_PTR(err); in ovl_encode_real_fh()
336 int err; in ovl_set_origin() local
[all …]
Dsuper.c325 int err; in ovl_statfs() local
329 err = vfs_statfs(&path, buf); in ovl_statfs()
330 if (!err) { in ovl_statfs()
335 return err; in ovl_statfs()
522 int err; in ovl_parse_opt() local
654 err = ovl_parse_redirect_mode(config, config->redirect_mode); in ovl_parse_opt()
655 if (err) in ovl_parse_opt()
656 return err; in ovl_parse_opt()
742 int err; in ovl_workdir_create() local
756 err = -EEXIST; in ovl_workdir_create()
[all …]
Dnamei.c112 int err; in ovl_get_fh() local
133 err = ovl_check_fb_len(&fh->fb, res); in ovl_get_fh()
134 if (err < 0) { in ovl_get_fh()
135 if (err == -ENODATA) in ovl_get_fh()
223 int err; in ovl_lookup_single() local
228 err = PTR_ERR(this); in ovl_lookup_single()
230 if (err == -ENOENT || err == -ENAMETOOLONG) in ovl_lookup_single()
237 err = -EREMOTE; in ovl_lookup_single()
257 err = ovl_check_metacopy_xattr(OVL_FS(d->sb), this); in ovl_lookup_single()
258 if (err < 0) in ovl_lookup_single()
[all …]
/fs/ubifs/
Dauth.c69 int err; in ubifs_prepare_auth_node() local
77 err = crypto_shash_final(hash_desc, hash); in ubifs_prepare_auth_node()
78 if (err) in ubifs_prepare_auth_node()
79 return err; in ubifs_prepare_auth_node()
82 err = ubifs_hash_calc_hmac(c, hash, auth->hmac); in ubifs_prepare_auth_node()
83 if (err) in ubifs_prepare_auth_node()
84 return err; in ubifs_prepare_auth_node()
95 int err; in ubifs_get_desc() local
106 err = crypto_shash_init(desc); in ubifs_get_desc()
107 if (err) { in ubifs_get_desc()
[all …]
Dtnc.c143 int err; in ins_clr_old_idx_znode() local
150 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode()
151 if (err) in ins_clr_old_idx_znode()
152 return err; in ins_clr_old_idx_znode()
159 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode()
160 if (err) in ins_clr_old_idx_znode()
161 return err; in ins_clr_old_idx_znode()
274 int err; in dirty_cow_znode() local
282 err = add_idx_dirt(c, zbr->lnum, zbr->len); in dirty_cow_znode()
283 if (unlikely(err)) in dirty_cow_znode()
[all …]
Ddir.c79 int err; in ubifs_new_inode() local
102 err = fscrypt_prepare_new_inode(dir, inode, &encrypted); in ubifs_new_inode()
103 if (err) { in ubifs_new_inode()
104 ubifs_err(c, "fscrypt_prepare_new_inode failed: %i", err); in ubifs_new_inode()
146 err = -EINVAL; in ubifs_new_inode()
165 err = fscrypt_set_context(inode, NULL); in ubifs_new_inode()
166 if (err) { in ubifs_new_inode()
167 ubifs_err(c, "fscrypt_set_context failed: %i", err); in ubifs_new_inode()
177 return ERR_PTR(err); in ubifs_new_inode()
196 int err; in ubifs_lookup() local
[all …]
Djournal.c100 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 …]
Dgc.c67 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local
75 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
76 if (err) in switch_gc_head()
77 return err; in switch_gc_head()
83 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head()
84 if (err) in switch_gc_head()
85 return err; in switch_gc_head()
87 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head()
88 if (err) in switch_gc_head()
89 return err; in switch_gc_head()
[all …]
Drecovery.c101 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 …]
Dxattr.c84 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 …]
Dsuper.c75 int err; in validate_inode() local
103 err = dbg_check_dir(c, inode); in validate_inode()
104 return err; in validate_inode()
109 int err; in ubifs_iget() local
127 err = -ENOMEM; in ubifs_iget()
133 err = ubifs_tnc_lookup(c, &key, ino); in ubifs_iget()
134 if (err) in ubifs_iget()
165 err = validate_inode(c, inode); in ubifs_iget()
166 if (err) in ubifs_iget()
177 err = -ENOMEM; in ubifs_iget()
[all …]
/fs/nilfs2/
Dnamei.c37 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/ext4/
Dioctl.c117 int err; in swap_inode_boot_loader() local
138 err = -EINVAL; in swap_inode_boot_loader()
144 err = -EPERM; in swap_inode_boot_loader()
149 err = filemap_write_and_wait(inode->i_mapping); in swap_inode_boot_loader()
150 if (err) in swap_inode_boot_loader()
153 err = filemap_write_and_wait(inode_bl->i_mapping); in swap_inode_boot_loader()
154 if (err) in swap_inode_boot_loader()
166 err = -EINVAL; in swap_inode_boot_loader()
192 err = dquot_initialize(inode); in swap_inode_boot_loader()
193 if (err) in swap_inode_boot_loader()
[all …]
Dext4_jbd2.c94 int err; in __ext4_journal_start_sb() local
98 err = ext4_journal_check_start(sb); in __ext4_journal_start_sb()
99 if (err < 0) in __ext4_journal_start_sb()
100 return ERR_PTR(err); in __ext4_journal_start_sb()
112 int err; in __ext4_journal_stop() local
120 err = handle->h_err; in __ext4_journal_stop()
123 return err ? err : rc; in __ext4_journal_stop()
129 if (!err) in __ext4_journal_stop()
130 err = rc; in __ext4_journal_stop()
131 if (err) in __ext4_journal_stop()
[all …]
/fs/hfsplus/
Dattributes.c140 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 …]
Dcatalog.c46 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/f2fs/
Drecovery.c78 int err; in add_fsync_inode() local
84 err = dquot_initialize(inode); in add_fsync_inode()
85 if (err) in add_fsync_inode()
89 err = dquot_alloc_inode(inode); in add_fsync_inode()
90 if (err) in add_fsync_inode()
101 return ERR_PTR(err); in add_fsync_inode()
120 int err; in init_recovered_filename() local
146 err = f2fs_init_casefolded_name(dir, fname); in init_recovered_filename()
147 if (err) in init_recovered_filename()
148 return err; in init_recovered_filename()
[all …]
Dnamei.c33 int err; in f2fs_new_inode() local
42 err = -ENOSPC; in f2fs_new_inode()
60 err = insert_inode_locked(inode); in f2fs_new_inode()
61 if (err) { in f2fs_new_inode()
62 err = -EINVAL; in f2fs_new_inode()
73 err = fscrypt_prepare_new_inode(dir, inode, &encrypt); in f2fs_new_inode()
74 if (err) in f2fs_new_inode()
77 err = dquot_initialize(inode); in f2fs_new_inode()
78 if (err) in f2fs_new_inode()
140 trace_f2fs_new_inode(inode, err); in f2fs_new_inode()
[all …]
/fs/ext2/
Dnamei.c42 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()
106 int err; in ext2_create() local
108 err = dquot_initialize(dir); in ext2_create()
109 if (err) in ext2_create()
110 return err; in ext2_create()
137 int err; in ext2_mknod() local
139 err = dquot_initialize(dir); in ext2_mknod()
140 if (err) in ext2_mknod()
[all …]
/fs/ceph/
Dlocks.c64 int err; in ceph_lock_message() local
113 err = ceph_mdsc_do_request(mdsc, inode, req); in ceph_lock_message()
114 if (!err && operation == CEPH_MDS_OP_GETFILELOCK) { in ceph_lock_message()
136 length, wait, fl->fl_type, err); in ceph_lock_message()
137 return err; in ceph_lock_message()
145 int err, lock_type; in ceph_lock_wait_for_completion() local
156 err = wait_for_completion_interruptible(&req->r_completion); in ceph_lock_wait_for_completion()
157 if (!err) in ceph_lock_wait_for_completion()
165 err = 0; in ceph_lock_wait_for_completion()
173 req->r_err = err; in ceph_lock_wait_for_completion()
[all …]
/fs/nfsd/
Dvfs.c66 int err = 0; in nfsd_cross_mnt() local
68 err = follow_down(&path); in nfsd_cross_mnt()
69 if (err < 0) in nfsd_cross_mnt()
80 err = PTR_ERR(exp2); in nfsd_cross_mnt()
88 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt()
89 err = 0; in nfsd_cross_mnt()
110 return err; in nfsd_cross_mnt()
255 __be32 err; in nfsd_lookup() local
257 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup()
258 if (err) in nfsd_lookup()
[all …]
/fs/fat/
Dnamei_msdos.c124 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/
Dxattr.c133 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 …]
/fs/verity/
Denable.c56 int err; in build_merkle_tree_level() local
83 err = PTR_ERR(src_page); in build_merkle_tree_level()
86 err, i); in build_merkle_tree_level()
87 return err; in build_merkle_tree_level()
99 err = PTR_ERR(src_page); in build_merkle_tree_level()
102 err, params->level_start[level - 1] + i); in build_merkle_tree_level()
103 return err; in build_merkle_tree_level()
107 err = fsverity_hash_page(params, inode, req, src_page, in build_merkle_tree_level()
110 if (err) in build_merkle_tree_level()
111 return err; in build_merkle_tree_level()
[all …]

12345678910>>...21