From: Trond Myklebust Date: Tue, 1 Jul 2014 22:27:53 +0000 (-0400) Subject: nfsd: Ensure that nfsd_create_setattr commits files to stable storage X-Git-Tag: omap-for-v3.17/fixes-against-rc2~101^2~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f3a24b43bf75adf67df188a85594a8f43b9ee93;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed