Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/fs/
Dxattr.c74 int error; in vfs_setxattr() local
76 error = xattr_permission(inode, name, MAY_WRITE); in vfs_setxattr()
77 if (error) in vfs_setxattr()
78 return error; in vfs_setxattr()
81 error = security_inode_setxattr(dentry, name, value, size, flags); in vfs_setxattr()
82 if (error) in vfs_setxattr()
84 error = -EOPNOTSUPP; in vfs_setxattr()
86 error = inode->i_op->setxattr(dentry, name, value, size, flags); in vfs_setxattr()
87 if (!error) { in vfs_setxattr()
95 error = security_inode_setsecurity(inode, suffix, value, in vfs_setxattr()
[all …]
Dopen.c128 int error; in SYSCALL_DEFINE2() local
130 error = user_path(pathname, &path); in SYSCALL_DEFINE2()
131 if (!error) { in SYSCALL_DEFINE2()
133 error = vfs_statfs_native(path.dentry, &tmp); in SYSCALL_DEFINE2()
134 if (!error && copy_to_user(buf, &tmp, sizeof(tmp))) in SYSCALL_DEFINE2()
135 error = -EFAULT; in SYSCALL_DEFINE2()
138 return error; in SYSCALL_DEFINE2()
144 long error; in SYSCALL_DEFINE3() local
148 error = user_path(pathname, &path); in SYSCALL_DEFINE3()
149 if (!error) { in SYSCALL_DEFINE3()
[all …]
Dnamei.c193 int error = check_acl(inode, mask); in generic_permission() local
194 if (error == -EACCES) in generic_permission()
196 else if (error != -EAGAIN) in generic_permission()
197 return error; in generic_permission()
610 int error; in __do_follow_link() local
623 error = PTR_ERR(cookie); in __do_follow_link()
626 error = 0; in __do_follow_link()
628 error = __vfs_follow_link(nd, s); in __do_follow_link()
634 return error; in __do_follow_link()
1301 int error; in user_path_parent() local
[all …]
Dstat.c61 int error; in vfs_stat_fd() local
63 error = user_path_at(dfd, name, LOOKUP_FOLLOW, &path); in vfs_stat_fd()
64 if (!error) { in vfs_stat_fd()
65 error = vfs_getattr(path.mnt, path.dentry, stat); in vfs_stat_fd()
68 return error; in vfs_stat_fd()
81 int error; in vfs_lstat_fd() local
83 error = user_path_at(dfd, name, 0, &path); in vfs_lstat_fd()
84 if (!error) { in vfs_lstat_fd()
85 error = vfs_getattr(path.mnt, path.dentry, stat); in vfs_lstat_fd()
88 return error; in vfs_lstat_fd()
[all …]
Dgeneric_acl.c57 int error; in generic_acl_get() local
62 error = posix_acl_to_xattr(acl, buffer, size); in generic_acl_get()
65 return error; in generic_acl_get()
77 int error; in generic_acl_set() local
91 error = posix_acl_valid(acl); in generic_acl_set()
92 if (error) in generic_acl_set()
97 error = posix_acl_equiv_mode(acl, &mode); in generic_acl_set()
98 if (error < 0) in generic_acl_set()
101 if (error == 0) { in generic_acl_set()
109 error = -EINVAL; in generic_acl_set()
[all …]
/fs/gfs2/
Dops_inode.c119 int error; in gfs2_lookup() local
120 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); in gfs2_lookup()
121 if (error) { in gfs2_lookup()
123 return ERR_PTR(error); in gfs2_lookup()
154 int error; in gfs2_link() local
162 error = gfs2_glock_nq(ghs); /* parent */ in gfs2_link()
163 if (error) in gfs2_link()
166 error = gfs2_glock_nq(ghs + 1); /* child */ in gfs2_link()
167 if (error) in gfs2_link()
170 error = gfs2_permission(dir, MAY_WRITE | MAY_EXEC); in gfs2_link()
[all …]
Deattr.c78 int error = 0; in ea_foreach_i() local
92 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i()
93 if (error) in ea_foreach_i()
94 return error; in ea_foreach_i()
104 return error; in ea_foreach_i()
115 int error; in ea_foreach() local
117 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, &bh); in ea_foreach()
118 if (error) in ea_foreach()
119 return error; in ea_foreach()
122 error = ea_foreach_i(ip, bh, ea_call, data); in ea_foreach()
[all …]
Dacl.c39 int error; in gfs2_acl_validate_set() local
41 error = gfs2_acl_validate_remove(ip, access); in gfs2_acl_validate_set()
42 if (error) in gfs2_acl_validate_set()
43 return error; in gfs2_acl_validate_set()
56 error = posix_acl_valid(acl); in gfs2_acl_validate_set()
57 if (error) in gfs2_acl_validate_set()
61 error = posix_acl_equiv_mode(acl, mode); in gfs2_acl_validate_set()
62 if (!error) in gfs2_acl_validate_set()
64 else if (error > 0) in gfs2_acl_validate_set()
65 error = 0; in gfs2_acl_validate_set()
[all …]
Dinode.c178 int error; in gfs2_inode_lookup() local
193 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); in gfs2_inode_lookup()
194 if (unlikely(error)) in gfs2_inode_lookup()
198 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, &io_gl); in gfs2_inode_lookup()
199 if (unlikely(error)) in gfs2_inode_lookup()
203 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh); in gfs2_inode_lookup()
204 if (unlikely(error)) in gfs2_inode_lookup()
224 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_inode_lookup()
225 if (unlikely(error)) in gfs2_inode_lookup()
245 return ERR_PTR(error); in gfs2_inode_lookup()
[all …]
Ddir.c106 int error; in gfs2_dir_get_existing_buffer() local
108 error = gfs2_meta_read(ip->i_gl, block, DIO_WAIT, &bh); in gfs2_dir_get_existing_buffer()
109 if (error) in gfs2_dir_get_existing_buffer()
110 return error; in gfs2_dir_get_existing_buffer()
123 int error; in gfs2_dir_write_stuffed() local
125 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_stuffed()
126 if (error) in gfs2_dir_write_stuffed()
127 return error; in gfs2_dir_write_stuffed()
161 int error = 0; in gfs2_dir_write_data() local
176 error = gfs2_unstuff_dinode(ip, NULL); in gfs2_dir_write_data()
[all …]
Dops_fstype.c212 static void end_bio_io_page(struct bio *bio, int error) in end_bio_io_page() argument
216 if (!error) in end_bio_io_page()
219 printk(KERN_WARNING "gfs2: error %d reading superblock\n", error); in end_bio_io_page()
315 int error; in gfs2_read_sb() local
317 error = gfs2_read_super(sdp, GFS2_SB_ADDR >> sdp->sd_fsb2bb_shift); in gfs2_read_sb()
318 if (error) { in gfs2_read_sb()
321 return error; in gfs2_read_sb()
324 error = gfs2_check_sb(sdp, &sdp->sd_sb, silent); in gfs2_read_sb()
325 if (error) in gfs2_read_sb()
326 return error; in gfs2_read_sb()
[all …]
Drecovery.c40 int error; in gfs2_replay_read_block() local
42 error = gfs2_extent_map(&ip->i_inode, blk, &new, &dblock, &extlen); in gfs2_replay_read_block()
43 if (error) in gfs2_replay_read_block()
44 return error; in gfs2_replay_read_block()
52 return error; in gfs2_replay_read_block()
157 int error; in get_log_header() local
159 error = gfs2_replay_read_block(jd, blk, &bh); in get_log_header()
160 if (error) in get_log_header()
161 return error; in get_log_header()
167 error = gfs2_log_header_in(&lh, bh->b_data); in get_log_header()
[all …]
Dsuper.c104 int error; in gfs2_jdesc_check() local
113 error = gfs2_write_alloc_required(ip, 0, ip->i_disksize, &ar); in gfs2_jdesc_check()
114 if (!error && ar) { in gfs2_jdesc_check()
116 error = -EIO; in gfs2_jdesc_check()
119 return error; in gfs2_jdesc_check()
135 int error; in gfs2_make_fs_rw() local
137 error = gfs2_glock_nq_init(sdp->sd_trans_gl, LM_ST_SHARED, 0, &t_gh); in gfs2_make_fs_rw()
138 if (error) in gfs2_make_fs_rw()
139 return error; in gfs2_make_fs_rw()
143 error = gfs2_find_jhead(sdp->sd_jdesc, &head); in gfs2_make_fs_rw()
[all …]
Dops_super.c101 int error; in gfs2_make_fs_ro() local
106 error = gfs2_glock_nq_init(sdp->sd_trans_gl, LM_ST_SHARED, GL_NOCACHE, in gfs2_make_fs_ro()
108 if (error && !test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) in gfs2_make_fs_ro()
109 return error; in gfs2_make_fs_ro()
121 return error; in gfs2_make_fs_ro()
133 int error; in gfs2_put_super() local
147 error = gfs2_make_fs_ro(sdp); in gfs2_put_super()
148 if (error) in gfs2_put_super()
222 int error; in gfs2_freeze() local
228 error = gfs2_freeze_fs(sdp); in gfs2_freeze()
[all …]
/fs/xfs/
Dxfs_attr.c132 int error; in xfs_attr_fetch() local
154 error = xfs_attr_shortform_getvalue(&args); in xfs_attr_fetch()
156 error = xfs_attr_leaf_get(&args); in xfs_attr_fetch()
158 error = xfs_attr_node_get(&args); in xfs_attr_fetch()
166 if (error == EEXIST) in xfs_attr_fetch()
167 error = 0; in xfs_attr_fetch()
168 return(error); in xfs_attr_fetch()
179 int error; in xfs_attr_get() local
187 error = xfs_attr_name_to_xname(&xname, name); in xfs_attr_get()
188 if (error) in xfs_attr_get()
[all …]
Dxfs_rtalloc.c90 int error; /* error return value */ in xfs_growfs_rt_alloc() local
111 if ((error = xfs_trans_reserve(tp, resblks, in xfs_growfs_rt_alloc()
120 if ((error = xfs_trans_iget(mp, tp, ino, 0, in xfs_growfs_rt_alloc()
129 error = xfs_bmapi(tp, ip, oblocks, nblocks - oblocks, in xfs_growfs_rt_alloc()
132 if (!error && nmap < 1) in xfs_growfs_rt_alloc()
133 error = XFS_ERROR(ENOSPC); in xfs_growfs_rt_alloc()
134 if (error) in xfs_growfs_rt_alloc()
139 error = xfs_bmap_finish(&tp, &flist, &committed); in xfs_growfs_rt_alloc()
140 if (error) in xfs_growfs_rt_alloc()
142 error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); in xfs_growfs_rt_alloc()
[all …]
Dxfs_vnodeops.c516 int error = 0; in xfs_readlink_bmap() local
518 error = xfs_bmapi(NULL, ip, 0, XFS_B_TO_FSB(mp, pathlen), 0, NULL, 0, in xfs_readlink_bmap()
520 if (error) in xfs_readlink_bmap()
528 error = XFS_BUF_GETERROR(bp); in xfs_readlink_bmap()
529 if (error) { in xfs_readlink_bmap()
544 error = 0; in xfs_readlink_bmap()
547 return error; in xfs_readlink_bmap()
557 int error = 0; in xfs_readlink() local
577 error = xfs_readlink_bmap(ip, link); in xfs_readlink()
582 return error; in xfs_readlink()
[all …]
Dxfs_rename.c109 int error; in xfs_rename() local
123 error = XFS_SEND_NAMESP(mp, DM_EVENT_RENAME, in xfs_rename()
128 if (error) in xfs_rename()
129 return error; in xfs_rename()
142 error = XFS_ERROR(EMLINK); in xfs_rename()
154 error = xfs_trans_reserve(tp, spaceres, XFS_RENAME_LOG_RES(mp), 0, in xfs_rename()
156 if (error == ENOSPC) { in xfs_rename()
158 error = xfs_trans_reserve(tp, 0, XFS_RENAME_LOG_RES(mp), 0, in xfs_rename()
161 if (error) { in xfs_rename()
169 if ((error = XFS_QM_DQVOPRENAME(mp, inodes))) { in xfs_rename()
[all …]
Dxfs_iomap.c179 int error = 0; in xfs_iomap() local
227 error = xfs_bmapi(NULL, ip, offset_fsb, in xfs_iomap()
232 if (error) in xfs_iomap()
247 error = xfs_iomap_write_direct(ip, offset, count, flags, in xfs_iomap()
250 error = xfs_iomap_write_delay(ip, offset, count, flags, in xfs_iomap()
253 if (!error) { in xfs_iomap()
270 error = xfs_iomap_write_allocate(ip, offset, count, in xfs_iomap()
285 return XFS_ERROR(error); in xfs_iomap()
298 int eof, error; in xfs_iomap_eof_align_last_fsb() local
331 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof); in xfs_iomap_eof_align_last_fsb()
[all …]
Dxfs_log_recover.c108 int error; in xlog_bread() local
133 error = xfs_iowait(bp); in xlog_bread()
134 if (error) in xlog_bread()
137 return error; in xlog_bread()
152 int error; in xlog_bwrite() local
177 if ((error = xfs_bwrite(log->l_mp, bp))) in xlog_bwrite()
180 return error; in xlog_bwrite()
320 int error; in xlog_find_cycle_start() local
324 if ((error = xlog_bread(log, mid_blk, 1, bp))) in xlog_find_cycle_start()
325 return error; in xlog_find_cycle_start()
[all …]
/fs/dlm/
Drecoverd.c35 int error = -EINTR; in enable_locking() local
44 error = 0; in enable_locking()
49 return error; in enable_locking()
55 int error, neg = 0; in ls_recover() local
88 error = dlm_recover_members(ls, rv, &neg); in ls_recover()
89 if (error) { in ls_recover()
90 log_debug(ls, "recover_members failed %d", error); in ls_recover()
100 error = dlm_recover_directory(ls); in ls_recover()
101 if (error) { in ls_recover()
102 log_debug(ls, "recover_directory failed %d", error); in ls_recover()
[all …]
Dlock.c360 int error = 0; in search_rsb_list() local
371 error = -ENOTBLK; in search_rsb_list()
373 return error; in search_rsb_list()
380 int error; in _search_rsb() local
382 error = search_rsb_list(&ls->ls_rsbtbl[b].list, name, len, flags, &r); in _search_rsb()
383 if (!error) { in _search_rsb()
387 error = search_rsb_list(&ls->ls_rsbtbl[b].toss, name, len, flags, &r); in _search_rsb()
388 if (error) in _search_rsb()
408 return error; in _search_rsb()
414 int error; in search_rsb() local
[all …]
Dmain.c23 int error; in init_dlm() local
25 error = dlm_memory_init(); in init_dlm()
26 if (error) in init_dlm()
29 error = dlm_lockspace_init(); in init_dlm()
30 if (error) in init_dlm()
33 error = dlm_config_init(); in init_dlm()
34 if (error) in init_dlm()
37 error = dlm_register_debugfs(); in init_dlm()
38 if (error) in init_dlm()
41 error = dlm_user_init(); in init_dlm()
[all …]
/fs/ext3/
Dxattr.c168 int error; in ext3_xattr_check_block() local
173 error = ext3_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size); in ext3_xattr_check_block()
174 return error; in ext3_xattr_check_block()
222 int error; in ext3_xattr_block_get() local
227 error = -ENODATA; in ext3_xattr_block_get()
240 error = -EIO; in ext3_xattr_block_get()
245 error = ext3_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext3_xattr_block_get()
246 if (error == -EIO) in ext3_xattr_block_get()
248 if (error) in ext3_xattr_block_get()
252 error = -ERANGE; in ext3_xattr_block_get()
[all …]
/fs/ext4/
Dxattr.c161 int error; in ext4_xattr_check_block() local
166 error = ext4_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size); in ext4_xattr_check_block()
167 return error; in ext4_xattr_check_block()
215 int error; in ext4_xattr_block_get() local
220 error = -ENODATA; in ext4_xattr_block_get()
233 error = -EIO; in ext4_xattr_block_get()
238 error = ext4_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext4_xattr_block_get()
239 if (error == -EIO) in ext4_xattr_block_get()
241 if (error) in ext4_xattr_block_get()
245 error = -ERANGE; in ext4_xattr_block_get()
[all …]

12345678910>>...14