diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-01 18:27:53 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-08 17:14:31 -0400 |
commit | 0f3a24b43bf75adf67df188a85594a8f43b9ee93 (patch) | |
tree | b3842434d8e8344c7ac76f225611877031f1929d /drivers/watchdog/scx200_wdt.c | |
parent | 1e444f5bc0c468e244ee601b7acbd87f0b6ee7e2 (diff) | |
download | talos-op-linux-0f3a24b43bf75adf67df188a85594a8f43b9ee93.tar.gz talos-op-linux-0f3a24b43bf75adf67df188a85594a8f43b9ee93.zip |
nfsd: Ensure that nfsd_create_setattr commits files to stable storage
Since nfsd_create_setattr strips the mode from the struct iattr, it
is quite possible that it will optimise away the call to nfsd_setattr
altogether.
If this is the case, then we never call commit_metadata() on the
newly created file.
Also ensure that both nfsd_setattr() and nfsd_create_setattr() fail
when the call to commit_metadata fails.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'drivers/watchdog/scx200_wdt.c')
0 files changed, 0 insertions, 0 deletions