aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/dir.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2012-04-30 14:16:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-22 16:00:30 -0400
commitde9b9422026357c878a9fa3714936be0e1388e9c (patch)
tree0df680496f90fac2155fba78cc46577eb2579ed4 /fs/ext3/dir.c
parentec7268ce21b379a248705548573393e4f346b20b (diff)
ext3: pass custom EOF to generic_file_llseek_size()
Use the new custom EOF argument to generic_file_llseek_size so that SEEK_END will go to the max hash value for htree dirs in ext3 rather than to i_size_read() Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext3/dir.c')
-rw-r--r--fs/ext3/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/dir.c b/fs/ext3/dir.c
index 901f67e37864..c8fff930790d 100644
--- a/fs/ext3/dir.c
+++ b/fs/ext3/dir.c
@@ -300,11 +300,11 @@ loff_t ext3_dir_llseek(struct file *file, loff_t offset, int origin)
300{ 300{
301 struct inode *inode = file->f_mapping->host; 301 struct inode *inode = file->f_mapping->host;
302 int dx_dir = is_dx_dir(inode); 302 int dx_dir = is_dx_dir(inode);
303 loff_t htree_max = ext3_get_htree_eof(file);
303 304
304 if (likely(dx_dir)) 305 if (likely(dx_dir))
305 return generic_file_llseek_size(file, offset, origin, 306 return generic_file_llseek_size(file, offset, origin,
306 ext3_get_htree_eof(file), 307 htree_max, htree_max);
307 i_size_read(inode));
308 else 308 else
309 return generic_file_llseek(file, offset, origin); 309 return generic_file_llseek(file, offset, origin);
310} 310}