Christoph Hellwig 1b9474635e cifs: truncate fallout
Remove the calls to inode_newsize_ok given that we already did it as
part of inode_change_ok in the beginning of cifs_setattr_(no)unix.

No need to call ->truncate if cifs doesn't have one, so remove the
explicit call in cifs_vmtruncate, and replace the calls to vmtruncate
with truncate_setsize which is vmtruncate minus inode_newsize_ok
and the call to ->truncate.

Rename cifs_vmtruncate to cifs_setsize to match the new calling conventions.

Question 1:  why does cifs do the pagecache munging and i_size update twice
	for each setattr call, once opencoded in cifs_vmtruncate, and once
	using the VFS helpers?
Question 2: what is supposed to be protected by i_lock in cifs_vmtruncate?
	Do we need it around the call to inode_change_ok?

[AV: fixed build breakage]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-08-09 16:48:48 -04:00
..
2010-08-09 16:48:06 -04:00
2010-05-27 09:12:41 -07:00
2010-08-09 16:48:48 -04:00
2010-08-09 16:47:51 -04:00
2010-05-19 22:41:57 -04:00
2010-04-30 14:52:51 -05:00
2010-08-09 16:48:42 -04:00
2010-08-09 16:48:24 -04:00
2010-08-09 16:48:45 -04:00
2010-08-09 16:48:45 -04:00
2010-08-09 16:48:45 -04:00
2010-08-09 16:48:01 -04:00
2010-08-09 16:48:17 -04:00
2010-08-09 16:48:16 -04:00
2010-08-09 16:47:49 -04:00
2010-08-09 16:48:17 -04:00
2010-08-09 16:48:20 -04:00
2010-08-09 16:48:42 -04:00
2010-08-09 16:48:25 -04:00
2010-08-09 16:48:05 -04:00
2010-08-09 16:47:52 -04:00
2010-08-09 16:47:31 -04:00
2010-01-26 22:22:26 -05:00
2010-08-09 16:48:00 -04:00
2010-08-09 16:47:53 -04:00
2010-08-09 16:47:59 -04:00
2010-08-09 16:48:18 -04:00
2010-08-09 16:48:19 -04:00
2010-08-09 16:48:02 -04:00
2010-03-19 08:05:10 +01:00
2010-08-09 16:47:33 -04:00
2009-09-24 07:21:03 -07:00
2010-08-09 16:48:42 -04:00
2010-08-09 16:48:13 -04:00
2010-05-11 17:43:58 +02:00
2010-03-06 11:26:29 -08:00
2010-05-21 18:31:16 -04:00
2010-03-08 16:55:37 +01:00
2010-05-21 18:31:17 -04:00
2010-05-18 08:57:00 +10:00
2010-05-21 18:31:17 -04:00
2010-06-10 19:08:34 +02:00
2010-05-27 09:12:56 -07:00
2010-03-12 15:52:32 -08:00
2010-08-09 16:48:44 -04:00
2010-06-29 10:38:22 -07:00
2010-08-09 16:47:43 -04:00