Lines Matching defs:error
60 loff_t error;
64 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY,
66 if (!error) {
67 error = generic_file_llseek(file, offset, whence);
73 error = gfs2_seek_data(file, offset);
77 error = gfs2_seek_hole(file, offset);
86 error = generic_file_llseek(file, offset, whence);
89 error = -EINVAL;
92 return error;
108 int error;
110 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh);
111 if (error)
112 return error;
114 error = gfs2_dir_read(dir, ctx, &file->f_ra);
118 return error;
161 int error;
165 error = gfs2_glock_nq(&gh);
166 if (error)
172 error = -EFAULT;
177 return error;
224 int error;
227 error = mnt_want_write_file(filp);
228 if (error)
229 return error;
231 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
232 if (error)
236 error = vfs_ioc_setflags_prepare(inode, oldflags, fsflags);
237 if (error)
240 error = -EACCES;
244 error = 0;
250 error = -EPERM;
259 error = gfs2_permission(inode, MAY_WRITE);
260 if (error)
268 error = filemap_fdatawrite(inode->i_mapping);
269 if (error)
271 error = filemap_fdatawait(inode->i_mapping);
272 if (error)
277 error = gfs2_trans_begin(sdp, RES_DINODE, 0);
278 if (error)
280 error = gfs2_meta_inode_buffer(ip, &bh);
281 if (error)
296 return error;
607 int error;
609 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY,
611 if (error)
612 return error;
685 int error;
689 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY,
691 if (error)
692 return error;
696 error = gfs2_open_common(inode, file);
701 return error;
742 * the error at the end. This is to match filemap_write_and_wait_range()
986 int error;
988 error = gfs2_meta_inode_buffer(ip, &dibh);
989 if (unlikely(error))
990 return error;
995 error = gfs2_unstuff_dinode(ip, NULL);
996 if (unlikely(error))
1003 error = gfs2_iomap_get_alloc(inode, offset, end - offset,
1005 if (error)
1010 error = sb_issue_zeroout(sb, iomap.addr >> inode->i_blkbits,
1013 if (error) {
1020 return error;
1064 int error;
1110 error = gfs2_quota_lock_check(ip, &ap);
1111 if (error)
1112 return error;
1119 error = gfs2_inplace_reserve(ip, &ap);
1120 if (error)
1138 error = gfs2_trans_begin(sdp, rblocks,
1140 if (error)
1143 error = fallocate_chunk(inode, offset, max_bytes, mode);
1146 if (error)
1169 return error;
1281 int error = 0;
1300 error = gfs2_glock_get(GFS2_SB(&ip->i_inode), ip->i_no_addr,
1302 if (error)
1308 error = gfs2_glock_nq(fl_gh);
1309 if (error != GLR_TRYFAILED)
1315 if (error) {
1317 if (error == GLR_TRYFAILED)
1318 error = -EAGAIN;
1320 error = locks_lock_file_wait(file, fl);
1321 gfs2_assert_warn(GFS2_SB(&ip->i_inode), !error);
1326 return error;