Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188658
b: refs/heads/master
c: dbd646a
h: refs/heads/master
v: v3
  • Loading branch information
Yehuda Sadeh authored and Sage Weil committed Dec 22, 2009
1 parent e697ba8 commit 7ce42e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 169e16ce816ca417286daf1db25de424a9d65a0c
refs/heads/master: dbd646a851713bec5bfff40ecf624b2e78518fe5
7 changes: 6 additions & 1 deletion trunk/fs/ceph/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,13 @@ static int writepage_nounlock(struct page *page, struct writeback_control *wbc)

static int ceph_writepage(struct page *page, struct writeback_control *wbc)
{
int err = writepage_nounlock(page, wbc);
int err;
struct inode *inode = page->mapping->host;
BUG_ON(!inode);
igrab(inode);
err = writepage_nounlock(page, wbc);
unlock_page(page);
iput(inode);
return err;
}

Expand Down

0 comments on commit 7ce42e5

Please sign in to comment.