Commit c6ef5b91 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman

Staging: lustre: dir: Remove wrapper function

Remove the function ll_check_page() and replace all its calls with the
function it wrapped.
Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Acked-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ee98e442
...@@ -239,12 +239,6 @@ static int ll_dir_filler(void *_hash, struct page *page0) ...@@ -239,12 +239,6 @@ static int ll_dir_filler(void *_hash, struct page *page0)
return rc; return rc;
} }
static void ll_check_page(struct inode *dir, struct page *page)
{
/* XXX: check page format later */
SetPageChecked(page);
}
void ll_release_page(struct page *page, int remove) void ll_release_page(struct page *page, int remove)
{ {
kunmap(page); kunmap(page);
...@@ -432,7 +426,8 @@ struct page *ll_get_dir_page(struct inode *dir, __u64 hash, ...@@ -432,7 +426,8 @@ struct page *ll_get_dir_page(struct inode *dir, __u64 hash,
goto fail; goto fail;
} }
if (!PageChecked(page)) if (!PageChecked(page))
ll_check_page(dir, page); /* XXX: check page format later */
SetPageChecked(page);
if (PageError(page)) { if (PageError(page)) {
CERROR("page error: "DFID" at %llu: rc %d\n", CERROR("page error: "DFID" at %llu: rc %d\n",
PFID(ll_inode2fid(dir)), hash, -5); PFID(ll_inode2fid(dir)), hash, -5);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment