Lines Matching refs:error
62 loff_t error;
66 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY,
68 if (!error) {
69 error = generic_file_llseek(file, offset, whence);
75 error = gfs2_seek_data(file, offset);
79 error = gfs2_seek_hole(file, offset);
88 error = generic_file_llseek(file, offset, whence);
91 error = -EINVAL;
94 return error;
110 int error;
112 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh);
113 if (error)
114 return error;
116 error = gfs2_dir_read(dir, ctx, &file->f_ra);
120 return error;
163 int error;
170 error = gfs2_glock_nq(&gh);
171 if (error)
181 return error;
225 int error;
228 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
229 if (error)
230 return error;
232 error = 0;
239 error = gfs2_permission(&nop_mnt_idmap, inode, MAY_WRITE);
240 if (error)
248 error = filemap_fdatawrite(inode->i_mapping);
249 if (error)
251 error = filemap_fdatawait(inode->i_mapping);
252 if (error)
257 error = gfs2_trans_begin(sdp, RES_DINODE, 0);
258 if (error)
260 error = gfs2_meta_inode_buffer(ip, &bh);
261 if (error)
274 return error;
596 int error;
598 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY,
600 if (error)
601 return error;
677 int error;
681 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY,
683 if (error)
684 return error;
688 error = gfs2_open_common(inode, file);
693 return error;
734 * the error at the end. This is to match filemap_write_and_wait_range()
1174 int error;
1176 error = gfs2_meta_inode_buffer(ip, &dibh);
1177 if (unlikely(error))
1178 return error;
1183 error = gfs2_unstuff_dinode(ip);
1184 if (unlikely(error))
1191 error = gfs2_iomap_alloc(inode, offset, end - offset, &iomap);
1192 if (error)
1197 error = sb_issue_zeroout(sb, iomap.addr >> inode->i_blkbits,
1200 if (error) {
1207 return error;
1251 int error;
1297 error = gfs2_quota_lock_check(ip, &ap);
1298 if (error)
1299 return error;
1306 error = gfs2_inplace_reserve(ip, &ap);
1307 if (error)
1325 error = gfs2_trans_begin(sdp, rblocks,
1327 if (error)
1330 error = fallocate_chunk(inode, offset, max_bytes, mode);
1333 if (error)
1356 return error;
1477 int error = 0;
1498 error = gfs2_glock_get(GFS2_SB(&ip->i_inode), ip->i_no_addr,
1500 if (error)
1508 error = gfs2_glock_nq(fl_gh);
1509 if (error != GLR_TRYFAILED)
1515 if (error) {
1517 if (error == GLR_TRYFAILED)
1518 error = -EAGAIN;
1520 error = locks_lock_file_wait(file, fl);
1521 gfs2_assert_warn(GFS2_SB(&ip->i_inode), !error);
1526 return error;