Staging: lustre: dir: Remove wrapper function
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 6 Nov 2015 16:55:29 +0000 (22:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Remove the function ll_check_page() and replace all its calls with the
function it wrapped.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Acked-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c

index 951259a98323351ff2c939bc43d011070e620c7b..5c2ef92809e64ec0ece77f04b06af32a58da2750 100644 (file)
@@ -239,12 +239,6 @@ static int ll_dir_filler(void *_hash, struct page *page0)
        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)
 {
        kunmap(page);
@@ -432,7 +426,8 @@ struct page *ll_get_dir_page(struct inode *dir, __u64 hash,
                goto fail;
        }
        if (!PageChecked(page))
-               ll_check_page(dir, page);
+               /* XXX: check page format later */
+               SetPageChecked(page);
        if (PageError(page)) {
                CERROR("page error: "DFID" at %llu: rc %d\n",
                       PFID(ll_inode2fid(dir)), hash, -5);
This page took 0.0355 seconds and 5 git commands to generate.