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)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 11:16:09 +0000 (12:16 +0100)
commit80d025ffede88969f6adf7266fbdedfd5641148a
tree919744de22564e8f2f5e477d93700ada34d57cb1
parent3dd69aabcef3d835446a9a1e11d2eab0e6e35e95
ceph: don't update_dentry_lease unless we actually got one

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>
fs/ceph/inode.c