diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-04-18 18:05:36 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-07 11:38:32 -0700 |
commit | f0c9cadae6706b6ce00ef724121fbf0f34187e22 (patch) | |
tree | cfc39e3808123053a51500bd9f9c9f2cc7020bc1 /fs/f2fs/checkpoint.c | |
parent | 272e083f7a968bc81dd01e4f16860a1e9617d454 (diff) | |
download | linux-f0c9cadae6706b6ce00ef724121fbf0f34187e22.tar.gz linux-f0c9cadae6706b6ce00ef724121fbf0f34187e22.tar.xz |
f2fs: use is_valid_blkaddr to verify blkaddr for readability
Export is_valid_blkaddr() and use it to replace some codes for readability.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index a5e17a2a0781..72f64b314d2e 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -77,8 +77,7 @@ out: return page; } -static inline bool is_valid_blkaddr(struct f2fs_sb_info *sbi, - block_t blkaddr, int type) +bool is_valid_blkaddr(struct f2fs_sb_info *sbi, block_t blkaddr, int type) { switch (type) { case META_NAT: |