Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333144
b: refs/heads/master
c: 905ca19
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 28, 2012
1 parent 97df73f commit af5e32f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 9c6263819f25254f2ed48f076b50096dd5893dfb
refs/heads/master: 905ca191cfe1ab18822d86e3ddef1b1b38832fdc
9 changes: 3 additions & 6 deletions trunk/fs/nfs/pnfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ init_lseg(struct pnfs_layout_hdr *lo, struct pnfs_layout_segment *lseg)
lseg->pls_layout = lo;
}

static void free_lseg(struct pnfs_layout_segment *lseg)
static void pnfs_free_lseg(struct pnfs_layout_segment *lseg)
{
struct inode *ino = lseg->pls_layout->plh_inode;

Expand Down Expand Up @@ -352,12 +352,9 @@ pnfs_put_lseg(struct pnfs_layout_segment *lseg)
lo = lseg->pls_layout;
inode = lo->plh_inode;
if (atomic_dec_and_lock(&lseg->pls_refcount, &inode->i_lock)) {
LIST_HEAD(free_me);

pnfs_layout_remove_lseg(lo, lseg);
spin_unlock(&inode->i_lock);
list_add(&lseg->pls_list, &free_me);
pnfs_free_lseg_list(&free_me);
pnfs_free_lseg(lseg);
}
}
EXPORT_SYMBOL_GPL(pnfs_put_lseg);
Expand Down Expand Up @@ -494,7 +491,7 @@ pnfs_free_lseg_list(struct list_head *free_me)

list_for_each_entry_safe(lseg, tmp, free_me, pls_list) {
list_del(&lseg->pls_list);
free_lseg(lseg);
pnfs_free_lseg(lseg);
}
}

Expand Down

0 comments on commit af5e32f

Please sign in to comment.