diff options
Diffstat (limited to 'fs/squashfs/symlink.c')
-rw-r--r-- | fs/squashfs/symlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c index dbcc2f54bad4..d688ef42a6a1 100644 --- a/fs/squashfs/symlink.c +++ b/fs/squashfs/symlink.c | |||
@@ -48,10 +48,10 @@ static int squashfs_symlink_readpage(struct file *file, struct page *page) | |||
48 | struct inode *inode = page->mapping->host; | 48 | struct inode *inode = page->mapping->host; |
49 | struct super_block *sb = inode->i_sb; | 49 | struct super_block *sb = inode->i_sb; |
50 | struct squashfs_sb_info *msblk = sb->s_fs_info; | 50 | struct squashfs_sb_info *msblk = sb->s_fs_info; |
51 | int index = page->index << PAGE_CACHE_SHIFT; | 51 | int index = page->index << PAGE_SHIFT; |
52 | u64 block = squashfs_i(inode)->start; | 52 | u64 block = squashfs_i(inode)->start; |
53 | int offset = squashfs_i(inode)->offset; | 53 | int offset = squashfs_i(inode)->offset; |
54 | int length = min_t(int, i_size_read(inode) - index, PAGE_CACHE_SIZE); | 54 | int length = min_t(int, i_size_read(inode) - index, PAGE_SIZE); |
55 | int bytes, copied; | 55 | int bytes, copied; |
56 | void *pageaddr; | 56 | void *pageaddr; |
57 | struct squashfs_cache_entry *entry; | 57 | struct squashfs_cache_entry *entry; |
@@ -94,7 +94,7 @@ static int squashfs_symlink_readpage(struct file *file, struct page *page) | |||
94 | copied = squashfs_copy_data(pageaddr + bytes, entry, offset, | 94 | copied = squashfs_copy_data(pageaddr + bytes, entry, offset, |
95 | length - bytes); | 95 | length - bytes); |
96 | if (copied == length - bytes) | 96 | if (copied == length - bytes) |
97 | memset(pageaddr + length, 0, PAGE_CACHE_SIZE - length); | 97 | memset(pageaddr + length, 0, PAGE_SIZE - length); |
98 | else | 98 | else |
99 | block = entry->next_index; | 99 | block = entry->next_index; |
100 | kunmap_atomic(pageaddr); | 100 | kunmap_atomic(pageaddr); |