Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323285
b: refs/heads/master
c: ff7f4cb
h: refs/heads/master
i:
  323283: 655860a
v: v3
  • Loading branch information
Steven Whitehouse committed Sep 24, 2012
1 parent 9f4a315 commit 0bccd32
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 191 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: 56aa72d0fcc9c4a3af4d0111d8d7f336b63adff9
refs/heads/master: ff7f4cb461163967a9dbb8c569e2447b7520654f
1 change: 0 additions & 1 deletion trunk/fs/gfs2/incore.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ struct gfs2_rgrpd {
#define GFS2_RDF_MASK 0xf0000000 /* mask for internal flags */
spinlock_t rd_rsspin; /* protects reservation related vars */
struct rb_root rd_rstree; /* multi-block reservation tree */
u32 rd_rs_cnt; /* count of current reservations */
};

struct gfs2_rbm {
Expand Down
11 changes: 3 additions & 8 deletions trunk/fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,14 +712,9 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
if (error)
goto fail_gunlock2;

/* The newly created inode needs a reservation so it can allocate
xattrs. At the same time, we want new blocks allocated to the new
dinode to be as contiguous as possible. Since we allocated the
dinode block under the directory's reservation, we transfer
ownership of that reservation to the new inode. The directory
doesn't need a reservation unless it needs a new allocation. */
ip->i_res = dip->i_res;
dip->i_res = NULL;
error = gfs2_rs_alloc(ip);
if (error)
goto fail_gunlock2;

error = gfs2_acl_create(dip, inode);
if (error)
Expand Down
Loading

0 comments on commit 0bccd32

Please sign in to comment.