Commit 45311267 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov

ceph: remove unnecessary NULL check

If page->mapping is NULL, releasepage() callback does not get called.
Remove the unnecessary NULL check to make static code analysis tool
happy
Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent a3d714c3
...@@ -175,8 +175,8 @@ static void ceph_invalidatepage(struct page *page, unsigned int offset, ...@@ -175,8 +175,8 @@ static void ceph_invalidatepage(struct page *page, unsigned int offset,
static int ceph_releasepage(struct page *page, gfp_t g) static int ceph_releasepage(struct page *page, gfp_t g)
{ {
struct inode *inode = page->mapping ? page->mapping->host : NULL; dout("%p releasepage %p idx %lu\n", page->mapping->host,
dout("%p releasepage %p idx %lu\n", inode, page, page->index); page, page->index);
WARN_ON(PageDirty(page)); WARN_ON(PageDirty(page));
/* Can we release the page from the cache? */ /* Can we release the page from the cache? */
......
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