Christoph Hellwig
2fe17c1075
fallocate should be a file operation
...
Currently all filesystems except XFS implement fallocate asynchronously,
while XFS forced a commit. Both of these are suboptimal - in case of O_SYNC
I/O we really want our allocation on disk, especially for the !KEEP_SIZE
case where we actually grow the file with user-visible zeroes. On the
other hand always commiting the transaction is a bad idea for fast-path
uses of fallocate like for example in recent Samba versions. Given
that block allocation is a data plane operation anyway change it from
an inode operation to a file operation so that we have the file structure
available that lets us check for O_SYNC.
This also includes moving the code around for a few of the filesystems,
and remove the already unnedded S_ISDIR checks given that we only wire
up fallocate for regular files.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2011-01-17 02:25:31 -05:00
..
2011-01-12 20:03:43 -05:00
2011-01-12 20:02:45 -05:00
2011-01-12 20:03:42 -05:00
2011-01-15 20:07:48 -05:00
2011-01-15 20:07:49 -05:00
2011-01-13 08:03:15 -08:00
2011-01-07 17:50:26 +11:00
2011-01-17 02:25:31 -05:00
2010-10-15 15:53:27 +02:00
2011-01-13 10:25:24 -08:00
2011-01-15 20:07:48 -05:00
2011-01-13 10:27:28 -08:00
2011-01-16 21:22:29 +00:00
2011-01-13 08:03:23 -08:00
2010-10-29 04:16:28 -04:00
2010-10-29 04:16:28 -04:00
2011-01-16 21:22:37 +00:00
2011-01-13 17:19:38 -08:00
2011-01-07 17:50:26 +11:00
2011-01-07 17:50:26 +11:00
2011-01-07 17:50:31 +11:00
2011-01-11 14:37:31 -08:00
2011-01-13 10:45:01 -08:00
2011-01-17 02:25:31 -05:00
2011-01-12 20:02:43 -05:00
2011-01-07 17:50:26 +11:00
2011-01-14 09:23:36 -08:00
2011-01-12 20:02:44 -05:00
2011-01-17 02:25:31 -05:00
2011-01-12 20:02:45 -05:00
2011-01-12 20:02:45 -05:00
2011-01-12 20:03:42 -05:00
2011-01-12 20:02:47 -05:00
2011-01-07 17:50:26 +11:00
2011-01-07 17:50:26 +11:00
2011-01-12 20:02:43 -05:00
2010-12-10 16:04:28 +01:00
2011-01-13 10:05:56 -08:00
2011-01-07 17:50:29 +11:00
2011-01-13 10:45:01 -08:00
2011-01-04 13:10:37 -05:00
2011-01-13 10:45:01 -08:00
2011-01-12 20:02:44 -05:00
2011-01-12 20:03:43 -05:00
2011-01-15 20:07:48 -05:00
2010-03-30 22:02:32 +09:00
2011-01-16 11:31:50 -08:00
2011-01-13 10:45:01 -08:00
2011-01-13 10:05:56 -08:00
2011-01-12 08:35:53 -08:00
2011-01-17 02:25:31 -05:00
2010-10-29 04:16:13 -04:00
2011-01-07 17:50:26 +11:00
2011-01-13 14:47:54 +01:00
2011-01-13 17:32:43 -08:00
2011-01-07 17:50:26 +11:00
2011-01-10 19:04:05 +01:00
2010-10-29 04:16:31 -04:00
2011-01-13 10:45:01 -08:00
2011-01-07 17:50:26 +11:00
2011-01-13 21:38:46 +00:00
2011-01-10 16:10:33 -08:00
2011-01-12 20:02:44 -05:00
2011-01-07 17:50:26 +11:00
2011-01-11 14:45:52 -08:00
2011-01-07 17:50:26 +11:00
2011-01-17 02:25:31 -05:00
2011-01-13 08:03:22 -08:00
2011-01-16 13:47:07 -05:00
2010-08-09 16:47:39 -04:00
2011-01-07 17:50:29 +11:00
2010-10-14 10:57:40 -07:00
2010-06-01 08:11:06 -07:00
2011-01-13 08:03:12 -08:00
2010-03-30 22:02:32 +09:00
2010-06-29 15:29:31 -07:00
2010-10-29 04:16:28 -04:00
2010-08-17 18:07:43 -07:00
2011-01-03 15:01:48 +01:00
2010-11-10 14:40:43 +01:00
2011-01-14 18:44:22 +01:00
2010-12-17 15:18:05 +01:00
2011-01-13 10:45:01 -08:00
2011-01-07 14:39:20 -08:00
2010-11-30 17:56:38 -08:00
2011-01-16 11:31:50 -08:00
2010-10-26 16:52:13 -07:00
2010-08-09 16:47:44 -04:00
2010-10-15 15:53:27 +02:00
2011-01-13 08:03:12 -08:00
2010-12-15 12:30:36 -08:00
2010-10-27 18:17:02 -07:00
2010-10-15 15:53:27 +02:00
2010-10-26 16:52:15 -07:00
2010-08-11 08:59:02 -07:00
2011-01-07 17:50:27 +11:00
2011-01-16 13:47:07 -05:00
2011-01-13 17:32:48 -08:00
2011-01-07 17:50:29 +11:00
2011-01-07 17:50:26 +11:00
2011-01-17 01:47:59 -05:00
2010-11-19 19:46:45 -08:00
2010-11-15 10:23:31 +01:00
2010-10-28 09:44:56 -07:00
2010-10-27 18:03:12 -07:00
2011-01-12 20:03:43 -05:00
2011-01-14 13:17:26 -08:00
2010-10-28 09:44:56 -07:00
2011-01-10 19:04:08 +01:00
2011-01-13 17:32:32 -08:00
2011-01-17 01:35:23 -05:00
2011-01-17 01:47:59 -05:00
2010-10-15 15:53:27 +02:00
2011-01-17 02:25:31 -05:00
2011-01-16 13:47:07 -05:00
2011-01-07 17:50:33 +11:00
2011-01-12 20:06:58 -05:00
2010-08-09 20:45:05 -07:00
2011-01-13 08:03:12 -08:00
2010-10-25 21:26:12 -04:00
2010-10-26 10:13:10 -07:00
2011-01-13 10:45:01 -08:00
2011-01-15 20:07:33 -05:00
2010-08-09 16:48:44 -04:00
2011-01-16 13:47:07 -05:00
2010-08-09 16:47:43 -04:00
2010-10-15 15:53:27 +02:00
2010-08-13 16:53:13 -07:00
2010-03-30 22:02:32 +09:00
2010-05-21 18:31:18 -04:00