David Howells 2cd42d19cf afs: Fix setting of i_blocks
The setting of i_blocks, which is calculated from i_size, has got
accidentally misordered relative to the setting of i_size when initially
setting up an inode.  Further, i_blocks isn't updated by afs_apply_status()
when the size is updated.

To fix this, break the i_size/i_blocks setting out into a helper function
and call it from both places.

Fixes: a58823ac4589 ("afs: Fix application of status and callback to be under same lock")
Signed-off-by: David Howells <dhowells@redhat.com>
2019-06-20 18:12:02 +01:00
..
2019-05-01 22:43:23 -04:00
2019-06-20 18:12:02 +01:00
2019-05-01 22:43:23 -04:00
2019-05-01 22:43:24 -04:00
2019-05-07 18:14:36 -07:00
2019-05-16 16:24:01 -07:00
2019-05-16 11:46:58 -07:00
2019-05-01 22:43:24 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-14 08:55:43 -07:00
2019-05-14 08:59:14 -07:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-01 22:43:24 -04:00
2019-05-10 21:15:47 -04:00
2019-05-07 11:37:27 -07:00
2019-05-01 22:43:25 -04:00
2019-05-16 17:00:13 -07:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 15:08:16 -07:00
2019-05-01 22:43:26 -04:00
2019-05-14 09:02:14 -07:00
2019-05-01 22:43:25 -04:00
2019-05-01 22:43:25 -04:00
2019-05-01 22:43:25 -04:00
\n
2019-05-13 14:59:55 -07:00
2019-05-14 09:47:48 -07:00
2019-04-08 18:21:02 -05:00
2019-03-08 14:48:40 -08:00
2019-05-16 19:10:37 -07:00
2019-05-07 18:14:36 -07:00
2019-01-30 17:44:07 -05:00
2019-04-09 19:20:57 -04:00
2019-04-26 11:09:55 -07:00
2019-04-06 10:48:35 -06:00
2019-02-07 16:38:35 +01:00