aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index e85643cc74a9..5066bfd256c9 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1088,7 +1088,6 @@ static int f2fs_write_node_page(struct page *page,
1088{ 1088{
1089 struct f2fs_sb_info *sbi = F2FS_SB(page->mapping->host->i_sb); 1089 struct f2fs_sb_info *sbi = F2FS_SB(page->mapping->host->i_sb);
1090 nid_t nid; 1090 nid_t nid;
1091 unsigned int nofs;
1092 block_t new_addr; 1091 block_t new_addr;
1093 struct node_info ni; 1092 struct node_info ni;
1094 1093
@@ -1105,7 +1104,6 @@ static int f2fs_write_node_page(struct page *page,
1105 1104
1106 /* get old block addr of this node page */ 1105 /* get old block addr of this node page */
1107 nid = nid_of_node(page); 1106 nid = nid_of_node(page);
1108 nofs = ofs_of_node(page);
1109 BUG_ON(page->index != nid); 1107 BUG_ON(page->index != nid);
1110 1108
1111 get_node_info(sbi, nid, &ni); 1109 get_node_info(sbi, nid, &ni);
@@ -1566,7 +1564,7 @@ void flush_nat_entries(struct f2fs_sb_info *sbi)
1566 nid_t nid; 1564 nid_t nid;
1567 struct f2fs_nat_entry raw_ne; 1565 struct f2fs_nat_entry raw_ne;
1568 int offset = -1; 1566 int offset = -1;
1569 block_t old_blkaddr, new_blkaddr; 1567 block_t new_blkaddr;
1570 1568
1571 ne = list_entry(cur, struct nat_entry, list); 1569 ne = list_entry(cur, struct nat_entry, list);
1572 nid = nat_get_nid(ne); 1570 nid = nat_get_nid(ne);
@@ -1580,7 +1578,6 @@ void flush_nat_entries(struct f2fs_sb_info *sbi)
1580 offset = lookup_journal_in_cursum(sum, NAT_JOURNAL, nid, 1); 1578 offset = lookup_journal_in_cursum(sum, NAT_JOURNAL, nid, 1);
1581 if (offset >= 0) { 1579 if (offset >= 0) {
1582 raw_ne = nat_in_journal(sum, offset); 1580 raw_ne = nat_in_journal(sum, offset);
1583 old_blkaddr = le32_to_cpu(raw_ne.block_addr);
1584 goto flush_now; 1581 goto flush_now;
1585 } 1582 }
1586to_nat_page: 1583to_nat_page:
@@ -1602,7 +1599,6 @@ to_nat_page:
1602 1599
1603 BUG_ON(!nat_blk); 1600 BUG_ON(!nat_blk);
1604 raw_ne = nat_blk->entries[nid - start_nid]; 1601 raw_ne = nat_blk->entries[nid - start_nid];
1605 old_blkaddr = le32_to_cpu(raw_ne.block_addr);
1606flush_now: 1602flush_now:
1607 new_blkaddr = nat_get_blkaddr(ne); 1603 new_blkaddr = nat_get_blkaddr(ne);
1608 1604