ceph: don't update_dentry_lease unless we actually got one
authorJeff Layton <jlayton@redhat.com>
Thu, 26 Jan 2017 21:14:18 +0000 (16:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2017 15:21:37 +0000 (17:21 +0200)
commitdf37e8fadf749d2bd7010e420baef11542ecaca9
tree4f877f15c9d4ee37ef8e1b7d977d0e4f3b4e4346
parentb025eb5d2678af7e2d40ffa715e173b81a5a7972
ceph: don't update_dentry_lease unless we actually got one

[ Upstream commit 80d025ffede88969f6adf7266fbdedfd5641148a ]

This if block updates the dentry lease even in the case where
the MDS didn't grant one.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/inode.c