aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/dir.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-12-02 08:11:38 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-10 23:43:44 -0500
commit705f814e34e08f6169439014a2916fd5afbdf232 (patch)
tree710cee6de8f9f68addb8d5999d365e77f60e5546 /fs/f2fs/dir.c
parent61412b64b965af72798000c3c921e88db31216b1 (diff)
f2fs: remove unused variable
The variables node_page and page_offset are initialized but never used otherwise, so remove those unused variables. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r--fs/f2fs/dir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 089eb6766890..2a20c504ecd8 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -509,13 +509,11 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page,
509 } 509 }
510 510
511 if (bit_pos == NR_DENTRY_IN_BLOCK) { 511 if (bit_pos == NR_DENTRY_IN_BLOCK) {
512 loff_t page_offset;
513 truncate_hole(dir, page->index, page->index + 1); 512 truncate_hole(dir, page->index, page->index + 1);
514 clear_page_dirty_for_io(page); 513 clear_page_dirty_for_io(page);
515 ClearPageUptodate(page); 514 ClearPageUptodate(page);
516 dec_page_count(sbi, F2FS_DIRTY_DENTS); 515 dec_page_count(sbi, F2FS_DIRTY_DENTS);
517 inode_dec_dirty_dents(dir); 516 inode_dec_dirty_dents(dir);
518 page_offset = page->index << PAGE_CACHE_SHIFT;
519 f2fs_put_page(page, 1); 517 f2fs_put_page(page, 1);
520 } else { 518 } else {
521 f2fs_put_page(page, 1); 519 f2fs_put_page(page, 1);