summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2017-05-23 17:03:12 +0800
committerIlya Dryomov <idryomov@gmail.com>2017-07-07 17:25:13 +0200
commitf2b0c45f09796f87723a1225c919035457f72b7a (patch)
tree9120653a305e3fba13d038868222cbc264142b66 /fs/ceph
parentefb0ca765ac6f4985b57ef215e8d55e746b083f4 (diff)
downloadlinux-stable-f2b0c45f09796f87723a1225c919035457f72b7a.tar.gz
linux-stable-f2b0c45f09796f87723a1225c919035457f72b7a.tar.bz2
linux-stable-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 'fs/ceph')
-rw-r--r--fs/ceph/addr.c4
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);