NFS: Return -ETXTBSY when attempting to write to a swapfile
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 8 Nov 2019 21:02:24 +0000 (16:02 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 18 Nov 2019 09:43:24 +0000 (10:43 +0100)
commit89658c4d04c7661c2c0770c6f92f465d58eed62d
tree50d00e184b7ea0bc1df71dbc86e3fe1ca28811eb
parent0e96322b241cec8e8adf6cea70dc116d614f4add
NFS: Return -ETXTBSY when attempting to write to a swapfile

My understanding is that -EBUSY refers to the underlying device, and
that -ETXTBSY is used when attempting to access a file in use by the
kernel (like a swapfile). Changing this return code helps us pass
xfstests generic/569

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/file.c