]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: nfsd_setattr needs to call commit_metadata
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Jun 2010 19:59:18 +0000 (21:59 +0200)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 1 Jun 2010 23:17:50 +0000 (19:17 -0400)
commit201825aeea4fc7de347de03f023edf4651477404
treeb9d91c54bd22b5d059479ba69c7a732a90d566ac
parentc0a2e59e684cc5b4233a18f95bde7bf67f004e88
nfsd: nfsd_setattr needs to call commit_metadata

The conversion of write_inode_now calls to commit_metadata in commit
ffee30295e6ec08091da0e67501fcb6eca039d3d missed out the call in nfsd_setattr.

But without this conversion we can't guarantee that a SETATTR request
has actually been commited to disk with XFS, which causes a regression
from 2.6.32 (only for NFSv2, but anyway).

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/vfs.c