Home
last modified time | relevance | path

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

12345678910>>...19

/fs/ext4/
Dioctl.c103 int err; in swap_inode_boot_loader() local
137 err = -EINVAL; in swap_inode_boot_loader()
173 err = ext4_mark_inode_dirty(handle, inode); in swap_inode_boot_loader()
174 if (err < 0) { in swap_inode_boot_loader()
177 inode->i_ino, err); in swap_inode_boot_loader()
181 err = ext4_mark_inode_dirty(handle, inode_bl); in swap_inode_boot_loader()
182 if (err < 0) { in swap_inode_boot_loader()
185 inode_bl->i_ino, err); in swap_inode_boot_loader()
199 return err; in swap_inode_boot_loader()
228 int err, migrate = 0; in ext4_ioctl() local
[all …]
Dext4_jbd2.c66 int err; in __ext4_journal_start_sb() local
69 err = ext4_journal_check_start(sb); in __ext4_journal_start_sb()
70 if (err < 0) in __ext4_journal_start_sb()
71 return ERR_PTR(err); in __ext4_journal_start_sb()
83 int err; in __ext4_journal_stop() local
91 err = handle->h_err; in __ext4_journal_stop()
94 if (!err) in __ext4_journal_stop()
95 err = rc; in __ext4_journal_stop()
96 if (err) in __ext4_journal_stop()
97 __ext4_std_error(sb, where, line, err); in __ext4_journal_stop()
[all …]
Dresize.c86 int err = -EINVAL; in verify_group_input() local
156 err = 0; in verify_group_input()
159 return err; in verify_group_input()
346 int err; in bclean() local
352 if ((err = ext4_journal_get_write_access(handle, bh))) { in bclean()
354 bh = ERR_PTR(err); in bclean()
370 int err; in extend_or_restart_transaction() local
375 err = ext4_journal_extend(handle, EXT4_MAX_TRANS_DATA); in extend_or_restart_transaction()
376 if (err < 0) in extend_or_restart_transaction()
377 return err; in extend_or_restart_transaction()
[all …]
/fs/nilfs2/
Dnamei.c51 int err = nilfs_add_link(dentry, inode); in nilfs_add_nondir() local
52 if (!err) { in nilfs_add_nondir()
58 return err; in nilfs_add_nondir()
92 int err; in nilfs_create() local
94 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_create()
95 if (err) in nilfs_create()
96 return err; in nilfs_create()
98 err = PTR_ERR(inode); in nilfs_create()
104 err = nilfs_add_nondir(dentry, inode); in nilfs_create()
106 if (!err) in nilfs_create()
[all …]
/fs/ubifs/
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()
272 int err; in dirty_cow_znode() local
280 err = add_idx_dirt(c, zbr->lnum, zbr->len); in dirty_cow_znode()
281 if (unlikely(err)) in dirty_cow_znode()
[all …]
Dgc.c83 int err, gc_lnum = c->gc_lnum; in switch_gc_head() local
91 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
92 if (err) in switch_gc_head()
93 return err; in switch_gc_head()
99 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head()
100 if (err) in switch_gc_head()
101 return err; in switch_gc_head()
103 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
104 if (err) in switch_gc_head()
105 return err; in switch_gc_head()
[all …]
Djournal.c117 int err = 0, err1, retries = 0, avail, lnum, offs, squeeze; in reserve_space() local
131 err = -EROFS; in reserve_space()
147 err = lnum; in reserve_space()
148 if (err != -ENOSPC) in reserve_space()
161 err = lnum; in reserve_space()
162 if (err != -ENOSPC) in reserve_space()
163 return err; in reserve_space()
179 return err; in reserve_space()
194 err = ubifs_return_leb(c, lnum); in reserve_space()
195 if (err) in reserve_space()
[all …]
Drecovery.c113 int err, offs, len; in get_master_node() local
120 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0); in get_master_node()
121 if (err && err != -EBADMSG) in get_master_node()
189 err = -EINVAL; in get_master_node()
194 return err; in get_master_node()
207 int err = 0, lnum = UBIFS_MST_LNUM, sz = c->mst_node_alsz; in write_rcvrd_mst_node() local
216 err = ubifs_leb_change(c, lnum, mst, sz); in write_rcvrd_mst_node()
217 if (err) in write_rcvrd_mst_node()
219 err = ubifs_leb_change(c, lnum + 1, mst, sz); in write_rcvrd_mst_node()
220 if (err) in write_rcvrd_mst_node()
[all …]
Dxattr.c103 int err; in create_xattr() local
122 err = ubifs_budget_space(c, &req); in create_xattr()
123 if (err) in create_xattr()
124 return err; in create_xattr()
128 err = PTR_ERR(inode); in create_xattr()
143 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 …]
Dcommit.c111 int err, new_ltail_lnum, old_ltail_lnum, i; in do_commit() local
119 err = -EROFS; in do_commit()
125 err = 0; in do_commit()
131 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in do_commit()
132 if (err) in do_commit()
137 err = ubifs_gc_start_commit(c); in do_commit()
138 if (err) in do_commit()
140 err = dbg_check_lprops(c); in do_commit()
141 if (err) in do_commit()
143 err = ubifs_log_start_commit(c, &new_ltail_lnum); in do_commit()
[all …]
Dsuper.c68 int err; in validate_inode() local
96 err = dbg_check_dir(c, inode); in validate_inode()
97 return err; in validate_inode()
102 int err; in ubifs_iget() local
120 err = -ENOMEM; in ubifs_iget()
126 err = ubifs_tnc_lookup(c, &key, ino); in ubifs_iget()
127 if (err) in ubifs_iget()
154 err = validate_inode(c, inode); in ubifs_iget()
155 if (err) in ubifs_iget()
169 err = -ENOMEM; in ubifs_iget()
[all …]
Dio.c82 void ubifs_ro_mode(struct ubifs_info *c, int err) in ubifs_ro_mode() argument
88 ubifs_warn("switched to read-only mode, error %d", err); in ubifs_ro_mode()
102 int err; in ubifs_leb_read() local
104 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read()
109 if (err && (err != -EBADMSG || even_ebadmsg)) { in ubifs_leb_read()
111 len, lnum, offs, err); in ubifs_leb_read()
114 return err; in ubifs_leb_read()
120 int err; in ubifs_leb_write() local
126 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write()
128 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write()
[all …]
/fs/hfsplus/
Dattributes.c167 int err = 0; in hfsplus_find_attr() local
177 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr()
178 if (err) in hfsplus_find_attr()
180 err = hfs_brec_find(fd, hfs_find_rec_by_key); in hfsplus_find_attr()
181 if (err) in hfsplus_find_attr()
184 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr()
185 if (err) in hfsplus_find_attr()
187 err = hfs_brec_find(fd, hfs_find_1st_rec_by_cnid); in hfsplus_find_attr()
188 if (err) in hfsplus_find_attr()
193 return err; in hfsplus_find_attr()
[all …]
Dcatalog.c181 int err; in hfsplus_find_cat() local
185 err = hfs_brec_read(fd, &tmp, sizeof(hfsplus_cat_entry)); in hfsplus_find_cat()
186 if (err) in hfsplus_find_cat()
187 return err; in hfsplus_find_cat()
213 int err; in hfsplus_create_cat() local
217 err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd); in hfsplus_create_cat()
218 if (err) in hfsplus_create_cat()
219 return err; in hfsplus_create_cat()
226 err = hfs_brec_find(&fd, hfs_find_rec_by_key); in hfsplus_create_cat()
227 if (err != -ENOENT) { in hfsplus_create_cat()
[all …]
/fs/ext3/
Dioctl.c31 int err; in ext3_ioctl() local
42 err = mnt_want_write_file(filp); in ext3_ioctl()
43 if (err) in ext3_ioctl()
44 return err; in ext3_ioctl()
51 err = -EPERM; in ext3_ioctl()
82 err = PTR_ERR(handle); in ext3_ioctl()
87 err = ext3_reserve_inode_write(handle, inode, &iloc); in ext3_ioctl()
88 if (err) in ext3_ioctl()
98 err = ext3_mark_iloc_dirty(handle, inode, &iloc); in ext3_ioctl()
101 if (err) 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 …]
Dresize.c35 int err = -EINVAL; in verify_group_input() local
106 err = 0; in verify_group_input()
109 return err; in verify_group_input()
116 int err; in bclean() local
121 if ((err = ext3_journal_get_write_access(handle, bh))) { in bclean()
123 bh = ERR_PTR(err); in bclean()
161 int err; in extend_or_restart_transaction() local
166 err = ext3_journal_extend(handle, EXT3_MAX_TRANS_DATA); in extend_or_restart_transaction()
167 if (err < 0) in extend_or_restart_transaction()
168 return err; in extend_or_restart_transaction()
[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()
209 int err; in msdos_lookup() local
[all …]
/fs/exofs/
Dnamei.c38 int err = exofs_add_link(dentry, inode); in exofs_add_nondir() local
39 if (!err) { in exofs_add_nondir()
45 return err; in exofs_add_nondir()
66 int err = PTR_ERR(inode); in exofs_create() local
72 err = exofs_add_nondir(dentry, inode); in exofs_create()
74 return err; in exofs_create()
81 int err; in exofs_mknod() local
87 err = PTR_ERR(inode); in exofs_mknod()
91 err = exofs_add_nondir(dentry, inode); in exofs_mknod()
93 return err; in exofs_mknod()
[all …]
/fs/sdcardfs/
Dfile.c29 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 = 0; in sdcardfs_write() local
73 err = vfs_write(lower_file, buf, count, ppos); in sdcardfs_write()
75 if (err >= 0) { in sdcardfs_write()
82 return err; in sdcardfs_write()
87 int err = 0; in sdcardfs_readdir() local
94 err = iterate_dir(lower_file, ctx); in sdcardfs_readdir()
[all …]
Dinode.c66 int err = 0; in sdcardfs_create() local
76 err = -EACCES; in sdcardfs_create()
95 err = -ENOMEM; in sdcardfs_create()
100 err = vfs_create2(lower_dentry_mnt, lower_parent_dentry->d_inode, lower_dentry, mode, want_excl); in sdcardfs_create()
101 if (err) in sdcardfs_create()
104 err = sdcardfs_interpose(dentry, dir->i_sb, &lower_path, in sdcardfs_create()
106 if (err) in sdcardfs_create()
120 return err; in sdcardfs_create()
131 int err;
143 err = vfs_link(lower_old_dentry, lower_dir_dentry->d_inode,
[all …]
/fs/autofs4/
Ddev-ioctl.c73 int err = 0; in check_dev_ioctl_version() local
82 err = -EINVAL; in check_dev_ioctl_version()
89 return err; in check_dev_ioctl_version()
121 int err; in validate_dev_ioctl() local
123 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
124 if (err) { in validate_dev_ioctl()
131 err = invalid_str(param->path, param->size - sizeof(*param)); in validate_dev_ioctl()
132 if (err) { in validate_dev_ioctl()
139 err = check_name(param->path); in validate_dev_ioctl()
140 if (err) { in validate_dev_ioctl()
[all …]
/fs/nfsd/
Dvfs.c88 int err = 0; in nfsd_cross_mnt() local
90 err = follow_down(&path); in nfsd_cross_mnt()
91 if (err < 0) in nfsd_cross_mnt()
96 err = PTR_ERR(exp2); in nfsd_cross_mnt()
104 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt()
105 err = 0; in nfsd_cross_mnt()
126 return err; in nfsd_cross_mnt()
251 __be32 err; in nfsd_lookup() local
253 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup()
254 if (err) in nfsd_lookup()
[all …]
/fs/reiserfs/
Dxattr.c126 int err = -ENODATA; in open_xa_root() local
128 err = xattr_mkdir(privroot->d_inode, xaroot, 0700); in open_xa_root()
129 if (err) { in open_xa_root()
131 xaroot = ERR_PTR(err); in open_xa_root()
156 int err = -ENODATA; in open_xa_dir() local
158 err = xattr_mkdir(xaroot->d_inode, xadir, 0700); in open_xa_dir()
159 if (err) { in open_xa_dir()
161 xadir = ERR_PTR(err); in open_xa_dir()
225 int i, err = 0; in reiserfs_for_each_xattr() local
238 err = PTR_ERR(dir); in reiserfs_for_each_xattr()
[all …]
/fs/ceph/
Dlocks.c20 int err; in ceph_lock_message() local
51 err = ceph_mdsc_do_request(mdsc, inode, req); in ceph_lock_message()
75 length, wait, fl->fl_type, err); in ceph_lock_message()
76 return err; in ceph_lock_message()
86 int err; in ceph_lock() local
106 err = ceph_lock_message(CEPH_LOCK_FCNTL, op, file, lock_cmd, wait, fl); in ceph_lock()
107 if (!err) { in ceph_lock()
110 err = posix_lock_file(file, fl, NULL); in ceph_lock()
111 if (err && (CEPH_MDS_OP_SETFILELOCK == op)) { in ceph_lock()
118 err); in ceph_lock()
[all …]

12345678910>>...19