* [PATCH 2/3] fs: f2fs: add missing blank lines after declarations
@ 2018-05-29 19:33 youngjun yoo
2018-05-30 14:29 ` [f2fs-dev] " Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: youngjun yoo @ 2018-05-29 19:33 UTC (permalink / raw
To: jaegeuk; +Cc: linux-kernel, linux-f2fs-devel
clean up checkpatch warning:
WARNING: Missing a blank line after declarations
Signed-off-by: youngjun yoo <youngjun.willow@gmail.com>
---
fs/f2fs/file.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 5ae120f..df8b02b 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -96,6 +96,7 @@ static int f2fs_vm_page_mkwrite(struct vm_fault *vmf)
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);
}
@@ -412,6 +413,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);
@@ -502,6 +504,7 @@ void 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;
--
2.7.4
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [f2fs-dev] [PATCH 2/3] fs: f2fs: add missing blank lines after declarations
2018-05-29 19:33 [PATCH 2/3] fs: f2fs: add missing blank lines after declarations youngjun yoo
@ 2018-05-30 14:29 ` Chao Yu
0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2018-05-30 14:29 UTC (permalink / raw
To: youngjun yoo, jaegeuk; +Cc: linux-kernel, linux-f2fs-devel
On 2018/5/30 3:33, youngjun yoo wrote:
> 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>
Thanks,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-30 14:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29 19:33 [PATCH 2/3] fs: f2fs: add missing blank lines after declarations youngjun yoo
2018-05-30 14:29 ` [f2fs-dev] " Chao Yu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.