aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-05-04 09:58:10 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:33:28 +0200
commit5ab73dd8651e41a9f7c2db2b0931309333b39830 (patch)
tree7373e6728d3689ba1511d041129a1f12be1e5eba /fs/f2fs/node.c
parent57196e8e1b23dbc92429f1109b5bfd94aae3161b (diff)
f2fs: remove an obsolete variable
This patch removes an obsolete variable used in add_free_nid. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 2a753a844..a111b8123 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1705,7 +1705,6 @@ static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build)
struct f2fs_nm_info *nm_i = NM_I(sbi);
struct free_nid *i;
struct nat_entry *ne;
- bool allocated = false;
if (!available_free_memory(sbi, FREE_NIDS))
return -1;
@@ -1719,8 +1718,6 @@ static int add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build)
ne = __lookup_nat_cache(nm_i, nid);
if (ne && (!get_nat_flag(ne, IS_CHECKPOINTED) ||
nat_get_blkaddr(ne) != NULL_ADDR))
- allocated = true;
- if (allocated)
return 0;
}