diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-05-23 11:03:12 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-07-07 17:25:13 +0200 |
commit | f2b0c45f09796f87723a1225c919035457f72b7a (patch) | |
tree | 9120653a305e3fba13d038868222cbc264142b66 /fs/ceph/addr.c | |
parent | ceph: update the 'approaching max_size' code (diff) | |
download | linux-f2b0c45f09796f87723a1225c919035457f72b7a.tar.xz linux-f2b0c45f09796f87723a1225c919035457f72b7a.zip |
ceph: remove useless page->mapping check in writepage_nounlock()
Callers of writepage_nounlock() have already ensured non-null
page->mapping.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ceph/addr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 82220e9aaf7d..96f83a417944 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -534,10 +534,6 @@ static int writepage_nounlock(struct page *page, struct writeback_control *wbc) dout("writepage %p idx %lu\n", page, page->index); - if (!page->mapping || !page->mapping->host) { - dout("writepage %p - no mapping\n", page); - return -EFAULT; - } inode = page->mapping->host; ci = ceph_inode(inode); fsc = ceph_inode_to_client(inode); |