Home
last modified time | relevance | path

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

12345678910>>...13

/fs/ext4/
Dext4_jbd2.c10 int err = 0; in __ext4_journal_get_undo_access() local
13 err = jbd2_journal_get_undo_access(handle, bh); in __ext4_journal_get_undo_access()
14 if (err) in __ext4_journal_get_undo_access()
16 handle, err); in __ext4_journal_get_undo_access()
18 return err; in __ext4_journal_get_undo_access()
24 int err = 0; in __ext4_journal_get_write_access() local
27 err = jbd2_journal_get_write_access(handle, bh); in __ext4_journal_get_write_access()
28 if (err) in __ext4_journal_get_write_access()
30 handle, err); in __ext4_journal_get_write_access()
32 return err; in __ext4_journal_get_write_access()
[all …]
Dioctl.c36 int err, migrate = 0; in ext4_ioctl() local
47 err = mnt_want_write(filp->f_path.mnt); in ext4_ioctl()
48 if (err) in ext4_ioctl()
49 return err; in ext4_ioctl()
54 err = -EPERM; in ext4_ioctl()
87 err = -EOPNOTSUPP; in ext4_ioctl()
98 err = PTR_ERR(handle); in ext4_ioctl()
103 err = ext4_reserve_inode_write(handle, inode, &iloc); in ext4_ioctl()
104 if (err) in ext4_ioctl()
114 err = ext4_mark_iloc_dirty(handle, inode, &iloc); in ext4_ioctl()
[all …]
/fs/ubifs/
Dtnc.c142 int err; in ins_clr_old_idx_znode() local
149 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode()
150 if (err) in ins_clr_old_idx_znode()
151 return err; in ins_clr_old_idx_znode()
158 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode()
159 if (err) in ins_clr_old_idx_znode()
160 return err; in ins_clr_old_idx_znode()
271 int err; in dirty_cow_znode() local
279 err = add_idx_dirt(c, zbr->lnum, zbr->len); in dirty_cow_znode()
280 if (unlikely(err)) in dirty_cow_znode()
[all …]
Drecovery.c76 int err, offs, len; in get_master_node() local
83 err = ubi_read(c->ubi, lnum, sbuf, 0, c->leb_size); in get_master_node()
84 if (err && err != -EBADMSG) in get_master_node()
152 err = -EINVAL; in get_master_node()
157 return err; in get_master_node()
170 int err = 0, lnum = UBIFS_MST_LNUM, sz = c->mst_node_alsz; in write_rcvrd_mst_node() local
179 err = ubi_leb_change(c->ubi, lnum, mst, sz, UBI_SHORTTERM); in write_rcvrd_mst_node()
180 if (err) in write_rcvrd_mst_node()
182 err = ubi_leb_change(c->ubi, lnum + 1, mst, sz, UBI_SHORTTERM); in write_rcvrd_mst_node()
183 if (err) in write_rcvrd_mst_node()
[all …]
Djournal.c117 int err = 0, err1, retries = 0, avail, lnum, offs, free, squeeze; in reserve_space() local
130 err = -EROFS; in reserve_space()
146 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space()
147 if (err) in reserve_space()
153 err = lnum; in reserve_space()
154 if (err != -ENOSPC) in reserve_space()
167 err = lnum; in reserve_space()
168 if (err != -ENOSPC) in reserve_space()
169 return err; in reserve_space()
184 return err; in reserve_space()
[all …]
Dgc.c89 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local
97 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
98 if (err) in switch_gc_head()
99 return err; in switch_gc_head()
105 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head()
106 if (err) in switch_gc_head()
107 return err; in switch_gc_head()
109 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head()
110 if (err) in switch_gc_head()
111 return err; in switch_gc_head()
[all …]
Dcommit.c60 int err, new_ltail_lnum, old_ltail_lnum, i; in do_commit() local
66 err = -EROFS; in do_commit()
72 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in do_commit()
73 if (err) in do_commit()
78 err = ubifs_gc_start_commit(c); in do_commit()
79 if (err) in do_commit()
81 err = dbg_check_lprops(c); in do_commit()
82 if (err) in do_commit()
84 err = ubifs_log_start_commit(c, &new_ltail_lnum); in do_commit()
85 if (err) in do_commit()
[all …]
Dsuper.c68 int err; in validate_inode() local
97 err = dbg_check_dir_size(c, inode); in validate_inode()
98 return err; in validate_inode()
103 int err; in ubifs_iget() local
121 err = -ENOMEM; in ubifs_iget()
127 err = ubifs_tnc_lookup(c, &key, ino); in ubifs_iget()
128 if (err) in ubifs_iget()
155 err = validate_inode(c, inode); in ubifs_iget()
156 if (err) in ubifs_iget()
170 err = -ENOMEM; in ubifs_iget()
[all …]
Dxattr.c102 int err; in create_xattr() local
121 err = ubifs_budget_space(c, &req); in create_xattr()
122 if (err) in create_xattr()
123 return err; in create_xattr()
127 err = PTR_ERR(inode); in create_xattr()
142 err = -ENOMEM; in create_xattr()
156 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr()
157 if (err) in create_xattr()
176 return err; in create_xattr()
194 int err; in change_xattr() local
[all …]
Dfile.c62 int err, len, out_len; in read_block() local
67 err = ubifs_tnc_lookup(c, &key, dn); in read_block()
68 if (err) { in read_block()
69 if (err == -ENOENT) in read_block()
72 return err; in read_block()
83 err = ubifs_decompress(&dn->data, dlen, addr, &out_len, in read_block()
85 if (err || len != out_len) in read_block()
108 int err = 0, i; in do_readpage() local
132 err = -ENOMEM; in do_readpage()
142 err = -ENOENT; in do_readpage()
[all …]
Dtnc_commit.c40 int i, err; in make_idx_node() local
69 err = insert_old_idx_znode(c, znode); in make_idx_node()
95 return err; in make_idx_node()
127 int err; in fill_gap() local
130 err = make_idx_node(c, c->ileb_buf + gap_pos, znode, in fill_gap()
132 if (err) in fill_gap()
133 return err; in fill_gap()
230 int lnum, dirt = 0, gap_start, gap_end, err, written, tot_written; in layout_leb_in_gaps() local
300 err = ubifs_read_one_lp(c, lnum, &lp); in layout_leb_in_gaps()
301 if (err) in layout_leb_in_gaps()
[all …]
Dmaster.c94 int err; in validate_master() local
97 err = 1; in validate_master()
102 err = 2; in validate_master()
107 err = 3; in validate_master()
115 err = 4; in validate_master()
121 err = 5; in validate_master()
127 err = 6; in validate_master()
132 err = 7; in validate_master()
139 err = 8; in validate_master()
145 err = 9; in validate_master()
[all …]
Dorphan.c245 int err = 0; in do_write_orph_node() local
251 err = ubifs_leb_change(c, c->ohead_lnum, c->orph_buf, len, in do_write_orph_node()
256 err = ubifs_leb_unmap(c, c->ohead_lnum); in do_write_orph_node()
257 if (err) in do_write_orph_node()
258 return err; in do_write_orph_node()
260 err = ubifs_write_node(c, c->orph_buf, len, c->ohead_lnum, in do_write_orph_node()
263 return err; in do_write_orph_node()
279 int gap, err, len, cnt, i; in write_orph_node() local
322 err = do_write_orph_node(c, len, atomic); in write_orph_node()
325 return err; in write_orph_node()
[all …]
Ddir.c202 int err; in ubifs_lookup() local
220 err = ubifs_tnc_lookup_nm(c, &key, dent, &dentry->d_name); in ubifs_lookup()
221 if (err) { in ubifs_lookup()
222 if (err == -ENOENT) { in ubifs_lookup()
230 err = -EINVAL; in ubifs_lookup()
240 err = PTR_ERR(inode); in ubifs_lookup()
242 dentry->d_name.len, dentry->d_name.name, err); in ubifs_lookup()
243 ubifs_ro_mode(c, err); in ubifs_lookup()
258 return ERR_PTR(err); in ubifs_lookup()
266 int err, sz_change = CALC_DENT_SIZE(dentry->d_name.len); in ubifs_create() local
[all …]
/fs/ext3/
Dioctl.c37 int err; in ext3_ioctl() local
42 err = mnt_want_write(filp->f_path.mnt); in ext3_ioctl()
43 if (err) in ext3_ioctl()
44 return err; in ext3_ioctl()
47 err = -EACCES; in ext3_ioctl()
52 err = -EFAULT; in ext3_ioctl()
62 err = -EPERM; in ext3_ioctl()
79 err = -EPERM; in ext3_ioctl()
91 err = -EPERM; in ext3_ioctl()
100 err = PTR_ERR(handle); in ext3_ioctl()
[all …]
Dext3_jbd.c10 int err = journal_get_undo_access(handle, bh); in __ext3_journal_get_undo_access() local
11 if (err) in __ext3_journal_get_undo_access()
12 ext3_journal_abort_handle(where, __func__, bh, handle,err); in __ext3_journal_get_undo_access()
13 return err; in __ext3_journal_get_undo_access()
19 int err = journal_get_write_access(handle, bh); in __ext3_journal_get_write_access() local
20 if (err) in __ext3_journal_get_write_access()
21 ext3_journal_abort_handle(where, __func__, bh, handle,err); in __ext3_journal_get_write_access()
22 return err; in __ext3_journal_get_write_access()
28 int err = journal_forget(handle, bh); in __ext3_journal_forget() local
29 if (err) in __ext3_journal_forget()
[all …]
/fs/fat/
Dnamei_msdos.c125 int err; in msdos_find() local
127 err = msdos_format_name(name, len, msdos_name, &sbi->options); in msdos_find()
128 if (err) in msdos_find()
131 err = fat_scan(dir, msdos_name, sinfo); in msdos_find()
132 if (!err && sbi->options.dotsOK) { in msdos_find()
135 err = -ENOENT; in msdos_find()
138 err = -ENOENT; in msdos_find()
140 if (err) in msdos_find()
143 return err; in msdos_find()
207 int err; in msdos_lookup() local
[all …]
/fs/autofs4/
Ddev-ioctl.c74 int err = 0; in check_dev_ioctl_version() local
83 err = -EINVAL; in check_dev_ioctl_version()
90 return err; in check_dev_ioctl_version()
131 int err; in validate_dev_ioctl() local
133 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
134 if (err) { in validate_dev_ioctl()
141 err = invalid_str(param->path, in validate_dev_ioctl()
143 if (err) { in validate_dev_ioctl()
150 err = check_name(param->path); in validate_dev_ioctl()
151 if (err) { in validate_dev_ioctl()
[all …]
/fs/ufs/
Dnamei.c40 int err = ufs_add_link(dentry, inode); in ufs_add_nondir() local
41 if (!err) { in ufs_add_nondir()
47 return err; in ufs_add_nondir()
84 int err; in ufs_create() local
88 err = PTR_ERR(inode); in ufs_create()
96 err = ufs_add_nondir(dentry, inode); in ufs_create()
99 UFSD("END: err=%d\n", err); in ufs_create()
100 return err; in ufs_create()
106 int err; in ufs_mknod() local
111 err = PTR_ERR(inode); in ufs_mknod()
[all …]
/fs/hostfs/
Dhostfs_kern.c139 int err; in read_name() local
145 err = stat_file(name, &i_ino, &i_mode, &i_nlink, &ino->i_uid, in read_name()
148 if (err) in read_name()
149 return err; in read_name()
210 int err = 0; in hostfs_read_inode() local
219 err = -ENOMEM; in hostfs_read_inode()
227 err = PTR_ERR(name); in hostfs_read_inode()
232 err = read_name(ino, name); in hostfs_read_inode()
235 return err; in hostfs_read_inode()
264 int err; in hostfs_statfs() local
[all …]
/fs/ext2/
Dnamei.c41 int err = ext2_add_link(dentry, inode); in ext2_add_nondir() local
42 if (!err) { in ext2_add_nondir()
50 return err; in ext2_add_nondir()
95 int err = PTR_ERR(inode); in ext2_create() local
109 err = ext2_add_nondir(dentry, inode); in ext2_create()
111 return err; in ext2_create()
117 int err; in ext2_mknod() local
123 err = PTR_ERR(inode); in ext2_mknod()
130 err = ext2_add_nondir(dentry, inode); in ext2_mknod()
132 return err; in ext2_mknod()
[all …]
/fs/nfsd/
Dvfs.c105 int err = 0; in nfsd_cross_mnt() local
112 err = PTR_ERR(exp2); in nfsd_cross_mnt()
129 return err; in nfsd_cross_mnt()
140 __be32 err; in nfsd_lookup_dentry() local
146 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup_dentry()
147 if (err) in nfsd_lookup_dentry()
148 return err; in nfsd_lookup_dentry()
232 __be32 err; in nfsd_lookup() local
234 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
235 if (err) in nfsd_lookup()
[all …]
/fs/sysv/
Dnamei.c20 int err = sysv_add_link(dentry, inode); in add_nondir() local
21 if (!err) { in add_nondir()
27 return err; in add_nondir()
67 int err; in sysv_mknod() local
73 err = PTR_ERR(inode); in sysv_mknod()
78 err = add_nondir(dentry, inode); in sysv_mknod()
80 return err; in sysv_mknod()
91 int err = -ENAMETOOLONG; in sysv_symlink() local
99 err = PTR_ERR(inode); in sysv_symlink()
104 err = page_symlink(inode, symname, l); in sysv_symlink()
[all …]
/fs/reiserfs/
Dxattr.c80 int err = -ENODATA; in get_xa_root() local
82 err = privroot->d_inode->i_op->mkdir(privroot->d_inode, in get_xa_root()
84 if (err) { in get_xa_root()
86 xaroot = ERR_PTR(err); in get_xa_root()
121 int err; in open_xa_dir() local
126 err = in open_xa_dir()
129 if (err) { in open_xa_dir()
132 return ERR_PTR(err); in open_xa_dir()
153 int err = 0; in get_xa_file_dentry() local
171 err = -EEXIST; in get_xa_file_dentry()
[all …]
/fs/jbd/
Drecovery.c71 int err; in do_readahead() local
89 err = journal_bmap(journal, next, &blocknr); in do_readahead()
91 if (err) { in do_readahead()
99 err = -ENOMEM; in do_readahead()
116 err = 0; in do_readahead()
121 return err; in do_readahead()
134 int err; in jread() local
145 err = journal_bmap(journal, offset, &blocknr); in jread()
147 if (err) { in jread()
150 return err; in jread()
[all …]

12345678910>>...13