Skip to content

Commit

Permalink
[XFS] Fix sparse warning found when page tracing enabled, due to
Browse files Browse the repository at this point in the history
overloaded gfp_t param.

SGI-PV: 954580
SGI-Modid: xfs-linux-melb:xfs-kern:26552a

Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
  • Loading branch information
Nathan Scott authored and Tim Shimmin committed Sep 28, 2006
1 parent 673cdf5 commit ed9d88f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ xfs_page_trace(
int tag,
struct inode *inode,
struct page *page,
int mask)
unsigned long pgoff)
{
xfs_inode_t *ip;
bhv_vnode_t *vp = vn_from_inode(inode);
Expand All @@ -91,7 +91,7 @@ xfs_page_trace(
(void *)ip,
(void *)inode,
(void *)page,
(void *)((unsigned long)mask),
(void *)pgoff,
(void *)((unsigned long)((ip->i_d.di_size >> 32) & 0xffffffff)),
(void *)((unsigned long)(ip->i_d.di_size & 0xffffffff)),
(void *)((unsigned long)((isize >> 32) & 0xffffffff)),
Expand All @@ -105,7 +105,7 @@ xfs_page_trace(
(void *)NULL);
}
#else
#define xfs_page_trace(tag, inode, page, mask)
#define xfs_page_trace(tag, inode, page, pgoff)
#endif

/*
Expand Down Expand Up @@ -1197,7 +1197,7 @@ xfs_vm_releasepage(
.nr_to_write = 1,
};

xfs_page_trace(XFS_RELEASEPAGE_ENTER, inode, page, gfp_mask);
xfs_page_trace(XFS_RELEASEPAGE_ENTER, inode, page, 0);

if (!page_has_buffers(page))
return 0;
Expand Down

0 comments on commit ed9d88f

Please sign in to comment.