NFSv4: Fix a tracepoint Oops in initiate_file_draining()
authorTrond Myklebust <trondmy@gmail.com>
Wed, 5 Sep 2018 18:07:13 +0000 (14:07 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 14 Sep 2018 20:24:08 +0000 (16:24 -0400)
commit2edaead69e7573f35e8d5dc20938e41eacc21b35
treed4fae87639f1e646c9f11adafe9233b6d5549b68
parentd03360aaf5ccac49581960bd736258c62972b88b
NFSv4: Fix a tracepoint Oops in initiate_file_draining()

Now that the value of 'ino' can be NULL or an ERR_PTR(), we need to
change the test in the tracepoint.

Fixes: ce5624f7e6675 ("NFSv4: Return NFS4ERR_DELAY when a layout fails...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.17+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4trace.h