summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoungjun yoo <youngjun.willow@gmail.com>2018-05-30 04:33:07 +0900
committerJaegeuk Kim <jaegeuk@kernel.org>2018-07-08 17:47:54 -0700
commit39ee53e22320abc578d94dded9244d64d450135a (patch)
tree4ecad853e98f45f19f2c0cd3bd402187aa36d586
parentd5b4710fcf381855b348216179e925f78815ef2c (diff)
fs: f2fs: add missing blank lines after declarations
clean up checkpatch warning: WARNING: Missing a blank line after declarations Signed-off-by: youngjun yoo <youngjun.willow@gmail.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fs/f2fs/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 516fe3cc85ff..c01e97426b2f 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -99,6 +99,7 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma,
if (((loff_t)(page->index + 1) << PAGE_SHIFT) >
i_size_read(inode)) {
loff_t offset;
+
offset = i_size_read(inode) & ~PAGE_MASK;
zero_user_segment(page, offset, PAGE_SIZE);
}
@@ -416,6 +417,7 @@ static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence)
dn.ofs_in_node++, pgofs++,
data_ofs = (loff_t)pgofs << PAGE_SHIFT) {
block_t blkaddr;
+
blkaddr = datablock_addr(dn.inode,
dn.node_page, dn.ofs_in_node);
@@ -506,6 +508,7 @@ void f2fs_truncate_data_blocks_range(struct dnode_of_data *dn, int count)
for (; count > 0; count--, addr++, dn->ofs_in_node++) {
block_t blkaddr = le32_to_cpu(*addr);
+
if (blkaddr == NULL_ADDR)
continue;