]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFS: Do not report writeback errors in nfs_getattr()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 15 Feb 2022 23:05:18 +0000 (18:05 -0500)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:44:11 +0000 (11:44 +0100)
commit01570fb41cef86438e852efcf728999b5f3ee006
tree9ecefdd4fb8ea369112af26a86c8f5fe07f23d99
parentc9d2835e4c16d1be5032d7c8cfd861c0cfa1f542
NFS: Do not report writeback errors in nfs_getattr()

BugLink: https://bugs.launchpad.net/bugs/1963890
commit d19e0183a88306acda07f4a01fedeeffe2a2a06b upstream.

The result of the writeback, whether it is an ENOSPC or an EIO, or
anything else, does not inhibit the NFS client from reporting the
correct file timestamps.

Fixes: 79566ef018f5 ("NFS: Getattr doesn't require data sync semantics")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/nfs/inode.c