/fs/xfs/libxfs/ |
D | xfs_attr.c | 148 int error; in xfs_attr_get() local 157 error = xfs_attr_args_init(&args, ip, name, flags); in xfs_attr_get() 158 if (error) in xfs_attr_get() 159 return error; in xfs_attr_get() 170 error = xfs_attr_get_ilocked(ip, &args); in xfs_attr_get() 175 if (error) { in xfs_attr_get() 180 return error; in xfs_attr_get() 229 int error, error2; in xfs_attr_try_sf_addname() local 231 error = xfs_attr_shortform_addname(args); in xfs_attr_try_sf_addname() 232 if (error == -ENOSPC) in xfs_attr_try_sf_addname() [all …]
|
D | xfs_refcount.c | 113 int error; in xfs_refcount_get_rec() local 116 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_refcount_get_rec() 117 if (error || !*stat) in xfs_refcount_get_rec() 118 return error; in xfs_refcount_get_rec() 170 int error; in xfs_refcount_update() local 176 error = xfs_btree_update(cur, &rec); in xfs_refcount_update() 177 if (error) in xfs_refcount_update() 179 cur->bc_private.a.agno, error, _RET_IP_); in xfs_refcount_update() 180 return error; in xfs_refcount_update() 194 int error; in xfs_refcount_insert() local [all …]
|
D | xfs_rmap.c | 80 int error; in xfs_rmap_update() local 91 error = xfs_btree_update(cur, &rec); in xfs_rmap_update() 92 if (error) in xfs_rmap_update() 94 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_update() 95 return error; in xfs_rmap_update() 108 int error; in xfs_rmap_insert() local 113 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert() 114 if (error) in xfs_rmap_insert() 123 error = xfs_btree_insert(rcur, &i); in xfs_rmap_insert() 124 if (error) in xfs_rmap_insert() [all …]
|
D | xfs_ialloc.c | 110 int error; in xfs_inobt_get_rec() local 113 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec() 114 if (error || *stat == 0) in xfs_inobt_get_rec() 115 return error; in xfs_inobt_get_rec() 184 int error; in xfs_inobt_insert() local 191 error = xfs_inobt_lookup(cur, thisino, XFS_LOOKUP_EQ, &i); in xfs_inobt_insert() 192 if (error) { in xfs_inobt_insert() 194 return error; in xfs_inobt_insert() 198 error = xfs_inobt_insert_rec(cur, XFS_INOBT_HOLEMASK_FULL, in xfs_inobt_insert() 202 if (error) { in xfs_inobt_insert() [all …]
|
D | xfs_rtbitmap.c | 65 int error; /* error value */ in xfs_rtbuf_get() local 69 error = xfs_bmapi_read(ip, block, 1, &map, &nmap, XFS_DATA_FORK); in xfs_rtbuf_get() 70 if (error) in xfs_rtbuf_get() 71 return error; in xfs_rtbuf_get() 77 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_rtbuf_get() 80 if (error) in xfs_rtbuf_get() 81 return error; in xfs_rtbuf_get() 106 int error; /* error value */ in xfs_rtfind_back() local 119 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back() 120 if (error) { in xfs_rtfind_back() [all …]
|
/fs/gfs2/ |
D | inode.c | 128 int error; in gfs2_inode_lookup() local 141 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); in gfs2_inode_lookup() 142 if (unlikely(error)) in gfs2_inode_lookup() 146 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, &io_gl); in gfs2_inode_lookup() 147 if (unlikely(error)) in gfs2_inode_lookup() 156 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_inode_lookup() 158 if (error) in gfs2_inode_lookup() 162 error = gfs2_check_blk_type(sdp, no_addr, in gfs2_inode_lookup() 164 if (error) in gfs2_inode_lookup() 171 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh); in gfs2_inode_lookup() [all …]
|
D | xattr.c | 81 int error = 0; in ea_foreach_i() local 95 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i() 96 if (error) in ea_foreach_i() 97 return error; in ea_foreach_i() 107 return error; in ea_foreach_i() 118 int error; in ea_foreach() local 120 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, 0, &bh); in ea_foreach() 121 if (error) in ea_foreach() 122 return error; in ea_foreach() 125 error = ea_foreach_i(ip, bh, ea_call, data); in ea_foreach() [all …]
|
D | super.c | 124 int error = 0; in init_threads() local 128 error = PTR_ERR(p); in init_threads() 129 fs_err(sdp, "can't start logd thread: %d\n", error); in init_threads() 130 return error; in init_threads() 136 error = PTR_ERR(p); in init_threads() 137 fs_err(sdp, "can't start quotad thread: %d\n", error); in init_threads() 146 return error; in init_threads() 162 int error; in gfs2_make_fs_rw() local 164 error = init_threads(sdp); in gfs2_make_fs_rw() 165 if (error) in gfs2_make_fs_rw() [all …]
|
/fs/ |
D | xattr.c | 174 int error = -EAGAIN; in __vfs_setxattr_noperm() local 181 error = __vfs_setxattr(dentry, inode, name, value, size, flags); in __vfs_setxattr_noperm() 182 if (!error) { in __vfs_setxattr_noperm() 191 if (error == -EAGAIN) { in __vfs_setxattr_noperm() 192 error = -EOPNOTSUPP; in __vfs_setxattr_noperm() 197 error = security_inode_setsecurity(inode, suffix, value, in __vfs_setxattr_noperm() 199 if (!error) in __vfs_setxattr_noperm() 204 return error; in __vfs_setxattr_noperm() 213 int error; in vfs_setxattr() local 215 error = xattr_permission(inode, name, MAY_WRITE); in vfs_setxattr() [all …]
|
D | open.c | 78 long error; in vfs_truncate() local 89 error = mnt_want_write(path->mnt); in vfs_truncate() 90 if (error) in vfs_truncate() 93 error = inode_permission2(mnt, inode, MAY_WRITE); in vfs_truncate() 94 if (error) in vfs_truncate() 97 error = -EPERM; in vfs_truncate() 101 error = get_write_access(inode); in vfs_truncate() 102 if (error) in vfs_truncate() 109 error = break_lease(inode, O_WRONLY); in vfs_truncate() 110 if (error) in vfs_truncate() [all …]
|
/fs/xfs/ |
D | xfs_reflink.c | 141 int error; in xfs_reflink_find_shared() local 143 error = xfs_alloc_read_agf(mp, tp, agno, 0, &agbp); in xfs_reflink_find_shared() 144 if (error) in xfs_reflink_find_shared() 145 return error; in xfs_reflink_find_shared() 151 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen, in xfs_reflink_find_shared() 154 xfs_btree_del_cursor(cur, error); in xfs_reflink_find_shared() 157 return error; in xfs_reflink_find_shared() 181 int error = 0; in xfs_reflink_trim_around_shared() local 195 error = xfs_reflink_find_shared(ip->i_mount, NULL, agno, agbno, in xfs_reflink_trim_around_shared() 197 if (error) in xfs_reflink_trim_around_shared() [all …]
|
D | xfs_bmap_util.c | 75 int error; /* error return value */ in xfs_bmap_rtalloc() local 86 error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, in xfs_bmap_rtalloc() 89 if (error) in xfs_bmap_rtalloc() 90 return error; in xfs_bmap_rtalloc() 130 error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx); in xfs_bmap_rtalloc() 131 if (error) in xfs_bmap_rtalloc() 132 return error; in xfs_bmap_rtalloc() 146 error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, ap->length, in xfs_bmap_rtalloc() 148 if (error) in xfs_bmap_rtalloc() 149 return error; in xfs_bmap_rtalloc() [all …]
|
D | xfs_rtalloc.c | 57 int error; /* error value */ in xfs_rtany_summary() local 72 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 73 if (error) { in xfs_rtany_summary() 74 return error; in xfs_rtany_summary() 108 int error; /* error return value */ in xfs_rtcopy_summary() local 118 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary() 120 if (error) in xfs_rtcopy_summary() 121 return error; in xfs_rtcopy_summary() 124 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary() 126 if (error) in xfs_rtcopy_summary() [all …]
|
D | xfs_attr_inactive.c | 44 int error; in xfs_attr3_leaf_freextent() local 57 error = xfs_bmapi_read(dp, (xfs_fileoff_t)tblkno, tblkcnt, in xfs_attr3_leaf_freextent() 59 if (error) { in xfs_attr3_leaf_freextent() 60 return error; in xfs_attr3_leaf_freextent() 84 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_leaf_freextent() 85 if (error) in xfs_attr3_leaf_freextent() 86 return error; in xfs_attr3_leaf_freextent() 114 int error; in xfs_attr3_leaf_inactive() local 174 error = 0; in xfs_attr3_leaf_inactive() 179 if (error == 0) in xfs_attr3_leaf_inactive() [all …]
|
D | xfs_fsops.c | 32 int error; in xfs_growfs_data_private() local 44 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private() 45 return error; in xfs_growfs_data_private() 46 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private() 49 if (error) in xfs_growfs_data_private() 50 return error; in xfs_growfs_data_private() 67 error = xfs_initialize_perag(mp, nagcount, &nagimax); in xfs_growfs_data_private() 68 if (error) in xfs_growfs_data_private() 69 return error; in xfs_growfs_data_private() 72 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growdata, in xfs_growfs_data_private() [all …]
|
D | xfs_iwalk.c | 181 int error; in xfs_iwalk_ag_recs() local 193 error = iwag->inobt_walk_fn(mp, tp, agno, irec, in xfs_iwalk_ag_recs() 195 if (error) in xfs_iwalk_ag_recs() 196 return error; in xfs_iwalk_ag_recs() 212 error = iwag->iwalk_fn(mp, tp, ino, iwag->data); in xfs_iwalk_ag_recs() 213 if (error) in xfs_iwalk_ag_recs() 214 return error; in xfs_iwalk_ag_recs() 227 int error) in xfs_iwalk_del_inobt() argument 230 xfs_btree_del_cursor(*curpp, error); in xfs_iwalk_del_inobt() 266 int error; in xfs_iwalk_ag_start() local [all …]
|
D | xfs_ioctl.c | 61 int error; in xfs_find_handle() local 70 error = user_path_at(AT_FDCWD, hreq->path, 0, &path); in xfs_find_handle() 71 if (error) in xfs_find_handle() 72 return error; in xfs_find_handle() 81 error = -EINVAL; in xfs_find_handle() 85 error = -EBADF; in xfs_find_handle() 109 error = -EFAULT; in xfs_find_handle() 114 error = 0; in xfs_find_handle() 121 return error; in xfs_find_handle() 185 int error; in xfs_open_by_handle() local [all …]
|
D | xfs_qm.c | 67 int error = 0; in xfs_qm_dquot_walk() local 83 error = execute(batch[i], data); in xfs_qm_dquot_walk() 84 if (error == -EAGAIN) { in xfs_qm_dquot_walk() 88 if (error && last_error != -EFSCORRUPTED) in xfs_qm_dquot_walk() 89 last_error = error; in xfs_qm_dquot_walk() 141 int error; in xfs_qm_dqpurge() local 147 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dqpurge() 148 if (!error) { in xfs_qm_dqpurge() 149 error = xfs_bwrite(bp); in xfs_qm_dqpurge() 253 int error; in xfs_qm_dqattach_one() local [all …]
|
D | xfs_inode.c | 686 int error; in xfs_lookup() local 693 error = xfs_dir_lookup(NULL, dp, name, &inum, ci_name); in xfs_lookup() 694 if (error) in xfs_lookup() 697 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup() 698 if (error) in xfs_lookup() 708 return error; in xfs_lookup() 757 int error; in xfs_ialloc() local 765 error = xfs_dialloc(tp, pip ? pip->i_ino : 0, mode, in xfs_ialloc() 767 if (error) in xfs_ialloc() 768 return error; in xfs_ialloc() [all …]
|
D | xfs_iops.c | 49 int error = 0; in xfs_initxattrs() local 52 error = xfs_attr_set(ip, xattr->name, xattr->value, in xfs_initxattrs() 54 if (error < 0) in xfs_initxattrs() 57 return error; in xfs_initxattrs() 133 int error; in xfs_generic_create() local 146 error = posix_acl_create(dir, &mode, &default_acl, &acl); in xfs_generic_create() 147 if (error) in xfs_generic_create() 148 return error; in xfs_generic_create() 151 error = xfs_dentry_mode_to_name(&name, dentry, mode); in xfs_generic_create() 152 if (unlikely(error)) in xfs_generic_create() [all …]
|
/fs/dlm/ |
D | recoverd.c | 33 int error = -EINTR; in enable_locking() local 43 error = 0; in enable_locking() 48 return error; in enable_locking() 54 int error, neg = 0; in ls_recover() local 75 error = dlm_recover_members(ls, rv, &neg); in ls_recover() 76 if (error) { in ls_recover() 77 log_rinfo(ls, "dlm_recover_members error %d", error); in ls_recover() 89 error = dlm_recover_members_wait(ls); in ls_recover() 90 if (error) { in ls_recover() 91 log_rinfo(ls, "dlm_recover_members_wait error %d", error); in ls_recover() [all …]
|
/fs/xfs/scrub/ |
D | agheader_repair.c | 39 int error; in xrep_superblock() local 46 error = xfs_sb_get_secondary(mp, sc->tp, agno, &bp); in xrep_superblock() 47 if (error) in xrep_superblock() 48 return error; in xrep_superblock() 57 return error; in xrep_superblock() 76 int error = 0; in xrep_agf_walk_allocbt() local 78 if (xchk_should_terminate(raa->sc, &error)) in xrep_agf_walk_allocbt() 79 return error; in xrep_agf_walk_allocbt() 84 return error; in xrep_agf_walk_allocbt() 144 int error; in xrep_agf_find_btrees() local [all …]
|
D | common.c | 68 int *error, in __xchk_process_error() argument 72 switch (*error) { in __xchk_process_error() 77 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_process_error() 83 *error = 0; in __xchk_process_error() 86 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error() 98 int *error) in xchk_process_error() argument 100 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error() 109 int *error) in xchk_xref_process_error() argument 111 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error() 121 int *error, in __xchk_fblock_process_error() argument [all …]
|
/fs/nfs/ |
D | nfs4trace.h | 158 #define show_nfsv4_errors(error) \ argument 159 __print_symbolic(error, \ 344 int error 347 TP_ARGS(clp, error), 351 __field(unsigned long, error) 355 __entry->error = error; 361 -__entry->error, 362 show_nfsv4_errors(__entry->error), 370 int error \ 372 TP_ARGS(clp, error)) [all …]
|
D | nfs3xdr.c | 751 int error; in decode_wcc_data() local 753 error = decode_pre_op_attr(xdr, fattr); in decode_wcc_data() 754 if (unlikely(error)) in decode_wcc_data() 756 error = decode_post_op_attr(xdr, fattr, userns); in decode_wcc_data() 758 return error; in decode_wcc_data() 1346 int error; in nfs3_xdr_enc_setacl3args() local 1357 error = nfsacl_encode(xdr->buf, base, args->inode, in nfs3_xdr_enc_setacl3args() 1361 BUG_ON(error < 0); in nfs3_xdr_enc_setacl3args() 1362 error = nfsacl_encode(xdr->buf, base + error, args->inode, in nfs3_xdr_enc_setacl3args() 1366 BUG_ON(error < 0); in nfs3_xdr_enc_setacl3args() [all …]
|