aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/eattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/eattr.c')
-rw-r--r--fs/gfs2/eattr.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c
index 698942ec7c99..bd5ca602f9f0 100644
--- a/fs/gfs2/eattr.c
+++ b/fs/gfs2/eattr.c
@@ -115,7 +115,7 @@ static int ea_foreach(struct gfs2_inode *ip, ea_call_t ea_call, void *data)
115 u64 *eablk, *end; 115 u64 *eablk, *end;
116 int error; 116 int error;
117 117
118 error = gfs2_meta_read(ip->i_gl, ip->i_di.di_eattr, DIO_START | DIO_WAIT, &bh); 118 error = gfs2_meta_read(ip->i_gl, ip->i_di.di_eattr, DIO_WAIT, &bh);
119 if (error) 119 if (error)
120 return error; 120 return error;
121 121
@@ -139,7 +139,7 @@ static int ea_foreach(struct gfs2_inode *ip, ea_call_t ea_call, void *data)
139 break; 139 break;
140 bn = be64_to_cpu(*eablk); 140 bn = be64_to_cpu(*eablk);
141 141
142 error = gfs2_meta_read(ip->i_gl, bn, DIO_START | DIO_WAIT, &eabh); 142 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, &eabh);
143 if (error) 143 if (error)
144 break; 144 break;
145 error = ea_foreach_i(ip, eabh, ea_call, data); 145 error = ea_foreach_i(ip, eabh, ea_call, data);
@@ -453,8 +453,8 @@ static int ea_get_unstuffed(struct gfs2_inode *ip, struct gfs2_ea_header *ea,
453 return -ENOMEM; 453 return -ENOMEM;
454 454
455 for (x = 0; x < nptrs; x++) { 455 for (x = 0; x < nptrs; x++) {
456 error = gfs2_meta_read(ip->i_gl, be64_to_cpu(*dataptrs), 456 error = gfs2_meta_read(ip->i_gl, be64_to_cpu(*dataptrs), 0,
457 DIO_START, bh + x); 457 bh + x);
458 if (error) { 458 if (error) {
459 while (x--) 459 while (x--)
460 brelse(bh[x]); 460 brelse(bh[x]);
@@ -464,7 +464,7 @@ static int ea_get_unstuffed(struct gfs2_inode *ip, struct gfs2_ea_header *ea,
464 } 464 }
465 465
466 for (x = 0; x < nptrs; x++) { 466 for (x = 0; x < nptrs; x++) {
467 error = gfs2_meta_reread(sdp, bh[x], DIO_WAIT); 467 error = gfs2_meta_wait(sdp, bh[x]);
468 if (error) { 468 if (error) {
469 for (; x < nptrs; x++) 469 for (; x < nptrs; x++)
470 brelse(bh[x]); 470 brelse(bh[x]);
@@ -938,8 +938,8 @@ static int ea_set_block(struct gfs2_inode *ip, struct gfs2_ea_request *er,
938 if (ip->i_di.di_flags & GFS2_DIF_EA_INDIRECT) { 938 if (ip->i_di.di_flags & GFS2_DIF_EA_INDIRECT) {
939 u64 *end; 939 u64 *end;
940 940
941 error = gfs2_meta_read(ip->i_gl, ip->i_di.di_eattr, 941 error = gfs2_meta_read(ip->i_gl, ip->i_di.di_eattr, DIO_WAIT,
942 DIO_START | DIO_WAIT, &indbh); 942 &indbh);
943 if (error) 943 if (error)
944 return error; 944 return error;
945 945
@@ -1215,8 +1215,8 @@ static int ea_acl_chmod_unstuffed(struct gfs2_inode *ip,
1215 goto out; 1215 goto out;
1216 1216
1217 for (x = 0; x < nptrs; x++) { 1217 for (x = 0; x < nptrs; x++) {
1218 error = gfs2_meta_read(ip->i_gl, be64_to_cpu(*dataptrs), 1218 error = gfs2_meta_read(ip->i_gl, be64_to_cpu(*dataptrs), 0,
1219 DIO_START, bh + x); 1219 bh + x);
1220 if (error) { 1220 if (error) {
1221 while (x--) 1221 while (x--)
1222 brelse(bh[x]); 1222 brelse(bh[x]);
@@ -1226,7 +1226,7 @@ static int ea_acl_chmod_unstuffed(struct gfs2_inode *ip,
1226 } 1226 }
1227 1227
1228 for (x = 0; x < nptrs; x++) { 1228 for (x = 0; x < nptrs; x++) {
1229 error = gfs2_meta_reread(sdp, bh[x], DIO_WAIT); 1229 error = gfs2_meta_wait(sdp, bh[x]);
1230 if (error) { 1230 if (error) {
1231 for (; x < nptrs; x++) 1231 for (; x < nptrs; x++)
1232 brelse(bh[x]); 1232 brelse(bh[x]);
@@ -1310,8 +1310,7 @@ static int ea_dealloc_indirect(struct gfs2_inode *ip)
1310 1310
1311 memset(&rlist, 0, sizeof(struct gfs2_rgrp_list)); 1311 memset(&rlist, 0, sizeof(struct gfs2_rgrp_list));
1312 1312
1313 error = gfs2_meta_read(ip->i_gl, ip->i_di.di_eattr, 1313 error = gfs2_meta_read(ip->i_gl, ip->i_di.di_eattr, DIO_WAIT, &indbh);
1314 DIO_START | DIO_WAIT, &indbh);
1315 if (error) 1314 if (error)
1316 return error; 1315 return error;
1317 1316