mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
efb0ca765a
commit
f2b0c45f09
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user