Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38727
b: refs/heads/master
c: af18ddb
h: refs/heads/master
i:
  38725: 3ca8312
  38723: 92f92cd
  38719: 6b1cf44
v: v3
  • Loading branch information
Steven Whitehouse committed Jun 24, 2006
1 parent 850e5d7 commit 0644999
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: a53311d4d9e1cde15aebc2048847ea19fb33ac3a
refs/heads/master: af18ddb8864b096e3ed4732e2d4b21c956dcfe3a
8 changes: 5 additions & 3 deletions trunk/fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ void gfs2_holder_uninit(struct gfs2_holder *gh)
* @gl: the glock
* @state: the state we're requesting
* @flags: the modifier flags
* @gfp_flags: __GFP_NOFAIL
* @gfp_flags:
*
* Figure out how big an impact this function has. Either:
* 1) Replace it with a cache of structures hanging off the struct gfs2_sbd
Expand Down Expand Up @@ -720,6 +720,7 @@ static void gfs2_glmutex_unlock(struct gfs2_glock *gl)
* @gl: the glock
* @state: the state the caller wants us to change to
*
* Note: This may fail sliently if we are out of memory.
*/

static void handle_callback(struct gfs2_glock *gl, unsigned int state)
Expand All @@ -744,8 +745,9 @@ static void handle_callback(struct gfs2_glock *gl, unsigned int state)
} else {
spin_unlock(&gl->gl_spin);

new_gh = gfs2_holder_get(gl, state, LM_FLAG_TRY,
GFP_KERNEL | __GFP_NOFAIL),
new_gh = gfs2_holder_get(gl, state, LM_FLAG_TRY, GFP_KERNEL);
if (!new_gh)
return;
set_bit(HIF_DEMOTE, &new_gh->gh_iflags);
set_bit(HIF_DEALLOC, &new_gh->gh_iflags);

Expand Down
6 changes: 2 additions & 4 deletions trunk/fs/gfs2/ops_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,8 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
brelse(dibh);

if (ouid != NO_QUOTA_CHANGE || ogid != NO_QUOTA_CHANGE) {
gfs2_quota_change(ip, -ip->i_di.di_blocks,
ouid, ogid);
gfs2_quota_change(ip, ip->i_di.di_blocks,
nuid, ngid);
gfs2_quota_change(ip, -ip->i_di.di_blocks, ouid, ogid);
gfs2_quota_change(ip, ip->i_di.di_blocks, nuid, ngid);
}

out_end_trans:
Expand Down

0 comments on commit 0644999

Please sign in to comment.