Prasad Joshi
218b8eafbd
Use truncate_setsize in zfs_setattr
...
According to Linux kernel commit 2c27c65e, using truncate_setsize in
setattr simplifies the code. Therefore, the patch replaces the call
to vmtruncate() with truncate_setsize().
zfs_setattr uses zfs_freesp to free the disk space belonging to the
file. As truncate_setsize may release the page cache and flushing
the dirty data to disk, it must be called before the zfs_freesp.
Suggested-by: Brian Behlendorf <behlendorf1@llnl.gov >
Signed-off-by: Prasad Joshi <pjoshi@stec-inc.com >
Closes #255
2011-06-27 09:59:52 -07:00
..
2011-06-21 14:36:39 -07:00
2010-08-31 08:38:35 -07:00
2010-08-26 14:24:34 -07:00
2010-08-31 13:41:58 -07:00
2011-05-31 12:17:27 -07:00
2011-05-31 12:17:27 -07:00
2010-08-26 14:24:34 -07:00
2010-08-31 13:41:58 -07:00
2011-02-18 09:31:25 -08:00
2010-08-31 13:41:57 -07:00
2011-05-31 12:17:27 -07:00
2010-08-31 13:41:58 -07:00
2011-05-04 10:02:37 -07:00
2011-02-10 09:27:22 -08:00
2010-08-31 08:38:45 -07:00
2010-09-17 16:24:15 -07:00
2011-02-10 09:27:21 -08:00
2010-05-28 13:45:14 -07:00
2010-08-31 13:41:58 -07:00
2010-08-31 13:41:58 -07:00
2011-05-04 10:02:37 -07:00
2011-02-23 12:52:51 -08:00
2011-05-04 10:02:37 -07:00
2010-08-31 13:41:58 -07:00
2011-05-04 10:02:37 -07:00
2010-08-31 08:38:46 -07:00
2010-08-31 08:38:49 -07:00
2011-04-29 12:36:13 -07:00
2010-08-31 08:38:45 -07:00
2010-08-31 08:38:43 -07:00
2010-12-07 16:05:25 -08:00
2011-02-10 09:27:20 -08:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2011-02-10 09:27:21 -08:00
2010-08-31 13:41:58 -07:00
2010-08-31 13:41:58 -07:00
2011-05-04 10:02:37 -07:00
2011-05-06 15:26:26 -07:00
2010-05-28 13:45:14 -07:00
2011-04-07 09:52:16 -07:00
2010-05-28 13:45:14 -07:00
2010-08-27 15:34:02 -07:00
2011-05-04 10:02:37 -07:00
2011-06-17 14:37:26 -07:00
2011-02-10 09:27:21 -08:00
2010-08-31 08:38:43 -07:00
2010-08-27 15:28:32 -07:00
2010-05-28 13:45:14 -07:00
2011-05-04 10:02:37 -07:00
2010-08-31 08:38:44 -07:00
2010-08-27 15:28:32 -07:00
2011-05-04 10:02:37 -07:00
2010-08-31 08:38:43 -07:00
2010-08-31 13:41:58 -07:00
2010-08-31 08:38:46 -07:00
2011-02-10 09:27:21 -08:00
2010-08-31 13:41:58 -07:00
2010-05-28 13:45:14 -07:00
2011-06-20 13:47:03 -07:00
2010-10-12 14:55:02 -07:00
2011-03-02 11:44:34 -08:00
2011-05-20 14:23:18 -07:00
2011-03-02 11:44:34 -08:00
2010-08-31 13:41:50 -07:00
2011-03-03 11:29:15 -08:00
2011-03-08 12:44:06 -08:00
2011-03-02 11:44:34 -08:00
2011-06-20 13:47:03 -07:00
2011-06-27 09:59:52 -07:00
2011-05-09 13:35:07 -07:00
2011-05-04 10:02:37 -07:00
2010-05-28 13:45:14 -07:00
2010-05-28 13:45:14 -07:00
2011-05-04 10:02:37 -07:00
2011-05-31 12:17:27 -07:00
2010-05-28 13:45:14 -07:00
2011-04-29 12:36:13 -07:00
2011-05-06 12:33:45 -07:00
2011-05-09 13:35:07 -07:00
2011-06-27 09:59:19 -07:00
2011-04-19 14:14:40 -07:00
2010-09-17 16:24:15 -07:00
2011-05-02 08:54:40 -07:00