diff options
Diffstat (limited to 'fs/fat/dir.c')
| -rw-r--r-- | fs/fat/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c index 4ce77475aed3..eef1b81aa294 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c | |||
| @@ -68,8 +68,8 @@ static int fat__get_entry(struct inode *dir, loff_t *pos, | |||
| 68 | { | 68 | { |
| 69 | struct super_block *sb = dir->i_sb; | 69 | struct super_block *sb = dir->i_sb; |
| 70 | sector_t phys, iblock; | 70 | sector_t phys, iblock; |
| 71 | int offset; | 71 | unsigned long mapped_blocks; |
| 72 | int err; | 72 | int err, offset; |
| 73 | 73 | ||
| 74 | next: | 74 | next: |
| 75 | if (*bh) | 75 | if (*bh) |
| @@ -77,7 +77,7 @@ next: | |||
| 77 | 77 | ||
| 78 | *bh = NULL; | 78 | *bh = NULL; |
| 79 | iblock = *pos >> sb->s_blocksize_bits; | 79 | iblock = *pos >> sb->s_blocksize_bits; |
| 80 | err = fat_bmap(dir, iblock, &phys); | 80 | err = fat_bmap(dir, iblock, &phys, &mapped_blocks); |
| 81 | if (err || !phys) | 81 | if (err || !phys) |
| 82 | return -1; /* beyond EOF or error */ | 82 | return -1; /* beyond EOF or error */ |
| 83 | 83 | ||
