]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: commit layouts in fdatasync
authorChristoph Hellwig <hch@infradead.org>
Mon, 21 Apr 2014 17:29:17 +0000 (10:29 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 28 May 2014 21:45:30 +0000 (17:45 -0400)
commitb0de14e16ec773cb3cfe8884164ce172d76bfcf0
tree534b6e6b3ffcc3cf2df17b3cf184fb92269b233b
parentc12850f6c4b96b962843dc820774299d12250661
nfs: commit layouts in fdatasync

 "fdatasync() is similar to fsync(), but does not flush modified metadata
  unless that metadata is needed in order  to  allow  a  subsequent  data
  retrieval to be correctly handled."

We absolutely need to commit the layouts to be able to retrieve the data
in case either the client, the server or the storage subsystem go down.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4file.c