Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43281
b: refs/heads/master
c: 61057c6
h: refs/heads/master
i:
  43279: 36ca3ca
v: v3
  • Loading branch information
Russell Cattelan authored and Steven Whitehouse committed Nov 30, 2006
1 parent 7a6a20f commit fa6a3f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 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: 7020933156ac2a8a7386314933e49948bf0438f7
refs/heads/master: 61057c6bb3a3d14cf2bea6ca20dc6d367e1d852e
20 changes: 4 additions & 16 deletions trunk/fs/gfs2/ops_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,6 @@ static int gfs2_writepage(struct page *page, struct writeback_control *wbc)
return 0;
}

static int zero_readpage(struct page *page)
{
void *kaddr;

kaddr = kmap_atomic(page, KM_USER0);
memset(kaddr, 0, PAGE_CACHE_SIZE);
kunmap_atomic(kaddr, KM_USER0);

SetPageUptodate(page);

return 0;
}

/**
* stuffed_readpage - Fill in a Linux page with stuffed file data
* @ip: the inode
Expand All @@ -183,9 +170,7 @@ static int stuffed_readpage(struct gfs2_inode *ip, struct page *page)
void *kaddr;
int error;

/* Only the first page of a stuffed file might contain data */
if (unlikely(page->index))
return zero_readpage(page);
BUG_ON(page->index);

error = gfs2_meta_inode_buffer(ip, &dibh);
if (error)
Expand Down Expand Up @@ -737,6 +722,9 @@ int gfs2_releasepage(struct page *page, gfp_t gfp_mask)
if (!atomic_read(&aspace->i_writecount))
return 0;

if (!(gfp_mask & __GFP_WAIT))
return 0;

if (time_after_eq(jiffies, t)) {
stuck_releasepage(bh);
/* should we withdraw here? */
Expand Down

0 comments on commit fa6a3f8

Please sign in to comment.