aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_inode.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-05-18 14:10:52 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-05-18 14:10:52 -0400
commit1b50259bc33f2adfcb4c5fba4b740bf80789df22 (patch)
treef8d20f032c9cb85883cdee846423667543947dde /fs/gfs2/ops_inode.c
parent02f211f4d0e67794020ba1babbdaf7c45d56db45 (diff)
[GFS2] Drop log lock on I/O error & tidy up
This patch drops the log spinlock when an I/O error occurs to avoid any possible problems in case of blocking or recursion in the I/O error routine. It also has a few cosmetic changes to tidy up various other files. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_inode.c')
-rw-r--r--fs/gfs2/ops_inode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c
index 62a12a59d91b..b25ec4c8e56a 100644
--- a/fs/gfs2/ops_inode.c
+++ b/fs/gfs2/ops_inode.c
@@ -213,8 +213,7 @@ static int gfs2_link(struct dentry *old_dentry, struct inode *dir,
213 if (error) 213 if (error)
214 goto out_gunlock_q; 214 goto out_gunlock_q;
215 215
216 error = gfs2_trans_begin(sdp, 216 error = gfs2_trans_begin(sdp, sdp->sd_max_dirres +
217 sdp->sd_max_dirres +
218 al->al_rgd->rd_ri.ri_length + 217 al->al_rgd->rd_ri.ri_length +
219 2 * RES_DINODE + RES_STATFS + 218 2 * RES_DINODE + RES_STATFS +
220 RES_QUOTA, 0); 219 RES_QUOTA, 0);
@@ -303,7 +302,7 @@ static int gfs2_unlink(struct inode *dir, struct dentry *dentry)
303 if (error) 302 if (error)
304 goto out_gunlock; 303 goto out_gunlock;
305 304
306 error = gfs2_unlinki(dip, &dentry->d_name, ip,ul); 305 error = gfs2_unlinki(dip, &dentry->d_name, ip, ul);
307 306
308 gfs2_trans_end(sdp); 307 gfs2_trans_end(sdp);
309 308