Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288039
b: refs/heads/master
c: 718b97b
h: refs/heads/master
i:
  288037: 38d7eff
  288035: c59937b
  288031: 943a790
v: v3
  • Loading branch information
Bob Peterson authored and Steven Whitehouse committed Feb 28, 2012
1 parent 0890c4e commit 656aa88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4043b886b0740ded65f633fc4b7225d624c7e658
refs/heads/master: 718b97bd6b03445be53098e3c8f896aeebc304aa
9 changes: 7 additions & 2 deletions trunk/fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,14 +1035,19 @@ static int gfs2_unlink(struct inode *dir, struct dentry *dentry)
struct buffer_head *bh;
struct gfs2_holder ghs[3];
struct gfs2_rgrpd *rgd;
int error = -EROFS;
int error;

error = gfs2_rindex_update(sdp);
if (error)
return error;
gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs);
gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, ghs + 1);

rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr);
if (!rgd)
if (!rgd) {
error = -EROFS;
goto out_inodes;
}
gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2);


Expand Down

0 comments on commit 656aa88

Please sign in to comment.