Neil Brown c1ac3ffcd0 nfsd: Fix possible BUG_ON firing in set_change_info
If vfs_getattr in fill_post_wcc returns an error, we don't
set fh_post_change.
For NFSv4, this can result in set_change_info triggering a BUG_ON.
i.e. fh_post_saved being zero isn't really a bug.

So:
 - instead of BUGging when fh_post_saved is zero, just clear ->atomic.
 - if vfs_getattr fails in fill_post_wcc, take a copy of i_ctime anyway.
   This will be used i seg_change_info, but not overly trusted.
 - While we are there, remove the pointless 'if' statements in set_change_info.
   There is no harm setting all the values.

Signed-off-by: NeilBrown <neilb@suse.de>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2010-12-08 11:44:04 -05:00
..
2008-02-01 16:42:05 -05:00
2010-09-27 10:16:11 -04:00
2010-10-27 21:39:39 +02:00
2007-05-09 12:30:54 -07:00
2010-07-30 12:54:54 -04:00
2010-09-21 17:02:27 -04:00
2010-10-29 04:16:28 -04:00
2010-10-11 20:00:18 -04:00
2009-12-20 20:19:51 -08:00
2010-07-30 12:54:54 -04:00
2010-10-21 10:12:02 -04:00
2010-10-25 21:18:19 -04:00
2010-07-30 12:54:54 -04:00