summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authoryoungjun yoo <youngjun.willow@gmail.com>2018-05-30 04:21:14 +0900
committerJaegeuk Kim <jaegeuk@kernel.org>2018-05-31 11:31:53 -0700
commit193bea1dd8dadc4785265adf0b1000ffe7d0c65c (patch)
tree104bce92927db315af731bc488336fd64eb2b615 /fs/f2fs
parent4d57b86dd86404fd8bb4f87d277d5a86a7fe537e (diff)
downloadlinux-193bea1dd8dadc4785265adf0b1000ffe7d0c65c.tar.gz
linux-193bea1dd8dadc4785265adf0b1000ffe7d0c65c.tar.bz2
linux-193bea1dd8dadc4785265adf0b1000ffe7d0c65c.zip
fs: f2fs: changed variable type of offset "unsigned" to "loff_t"
clean up checkpatch warning: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: youngjun yoo <youngjun.willow@gmail.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index b7b8ae92abbe..54a534bfc163 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -95,7 +95,7 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf)
/* page is wholly or partially inside EOF */
if (((loff_t)(page->index + 1) << PAGE_SHIFT) >
i_size_read(inode)) {
- unsigned offset;
+ loff_t offset;
offset = i_size_read(inode) & ~PAGE_MASK;
zero_user_segment(page, offset, PAGE_SIZE);
}
@@ -540,7 +540,7 @@ void f2fs_truncate_data_blocks(struct dnode_of_data *dn)
static int truncate_partial_data_page(struct inode *inode, u64 from,
bool cache_only)
{
- unsigned offset = from & (PAGE_SIZE - 1);
+ loff_t offset = from & (PAGE_SIZE - 1);
pgoff_t index = from >> PAGE_SHIFT;
struct address_space *mapping = inode->i_mapping;
struct page *page;