Eric Sandeen
e8b96eb503
vfs: allow custom EOF in generic_file_llseek code
...
For ext3/4 htree directories, using the vfs llseek function with
SEEK_END goes to i_size like for any other file, but in reality
we want the maximum possible hash value. Recent changes
in ext4 have cut & pasted generic_file_llseek() back into fs/ext4/dir.c,
but replicating this core code seems like a bad idea, especially
since the copy has already diverged from the vfs.
This patch updates generic_file_llseek_size to accept
both a custom maximum offset, and a custom EOF position. With this
in place, ext4_dir_llseek can pass in the appropriate maximum hash
position for both maxsize and eof, and get what it wants.
As far as I know, this does not fix any bugs - nfs in the kernel
doesn't use SEEK_END, and I don't know of any user who does. But
some ext4 folks seem keen on doing the right thing here, and I can't
really argue.
(Patch also fixes up some comments slightly)
Signed-off-by: Eric Sandeen <sandeen@redhat.com >
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-07-23 00:00:15 +04:00
..
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:50 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:35:30 +04:00
2012-07-14 16:38:34 +04:00
2012-05-15 10:39:28 -05:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:32:55 +04:00
2012-07-22 23:58:34 +04:00
2012-07-23 00:00:15 +04:00
2012-07-23 00:00:15 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:58:34 +04:00
2012-07-22 23:58:09 +04:00
2012-07-22 23:58:04 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-05-15 23:34:37 +02:00
2012-06-01 00:10:32 -04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:58:34 +04:00
2012-06-01 08:32:58 -07:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:50 +04:00
2012-07-14 16:38:34 +04:00
2012-06-01 19:51:22 -07:00
2012-07-14 16:32:55 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:38:34 +04:00
2012-06-20 15:15:03 -07:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-22 23:58:19 +04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:58:34 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:38:34 +04:00
2012-07-22 23:58:12 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:58:16 +04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:57:59 +04:00
2012-07-14 16:35:42 +04:00
2012-07-14 16:34:47 +04:00
2012-05-23 17:42:39 -07:00
2012-05-30 21:04:55 -04:00
2012-05-30 21:04:56 -04:00
2012-05-30 08:52:42 -07:00
2012-07-22 23:58:45 +04:00
2012-07-13 08:36:35 -07:00
2012-06-01 11:53:44 -07:00
2012-07-14 16:35:15 +04:00
2012-07-14 16:32:46 +04:00
2012-05-31 17:49:32 -07:00
2012-06-01 12:58:46 -04:00
2012-06-20 14:39:36 -07:00
2012-05-29 23:28:30 -04:00
2012-07-22 23:57:58 +04:00
2012-07-14 16:32:47 +04:00
2012-07-22 23:58:18 +04:00
2012-07-14 16:32:55 +04:00
2012-07-14 16:38:36 +04:00
2012-05-30 08:52:42 -07:00
2012-05-15 09:17:34 -04:00
2012-07-14 16:38:34 +04:00
2012-07-13 10:50:23 -07:00
2012-07-14 16:32:48 +04:00
2012-07-22 23:57:53 +04:00
2012-07-14 16:38:32 +04:00
2012-07-14 16:35:54 +04:00
2012-06-01 12:07:25 -04:00
2012-07-14 16:37:27 +04:00
2012-07-14 16:32:48 +04:00
2012-07-23 00:00:15 +04:00
2012-05-29 23:28:29 -04:00
2012-06-01 12:58:46 -04:00
2012-05-29 23:28:30 -04:00
2012-06-13 21:16:42 +02:00
2012-05-23 17:42:39 -07:00
2012-05-29 23:28:31 -04:00
2012-07-14 16:38:34 +04:00
2012-07-22 23:59:01 +04:00
2012-05-29 23:28:32 -04:00
2012-05-29 23:28:30 -04:00