]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: remove redundant code in nfs_file_write()
authorChenXiaoSong <chenxiaosong2@huawei.com>
Thu, 23 Jun 2022 01:58:58 +0000 (09:58 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 12 Jul 2022 14:05:24 +0000 (10:05 -0400)
commit4c066d9797bfa3bd3953c21bec01c88ec2922b74
tree1a04b8047244e2556392a979c4494222b00fe43f
parent08484f9c5061fba6a9fa79c6062facec91dca489
NFS: remove redundant code in nfs_file_write()

filemap_fdatawait_range() will always return 0, after patch c0230a8598f6
("NFS: Use of mapping_set_error() results in spurious errors"), it will not
save the wb err in struct address_space->flags:

  result = filemap_fdatawait_range(file->f_mapping, ...) = 0
    filemap_check_errors(mapping) = 0
      test_bit(..., &mapping->flags) // flags is 0

Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/file.c