diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-04-18 12:05:36 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-07 20:38:32 +0200 |
commit | f0c9cadae6706b6ce00ef724121fbf0f34187e22 (patch) | |
tree | cfc39e3808123053a51500bd9f9c9f2cc7020bc1 /fs/f2fs/checkpoint.c | |
parent | f2fs: make posix_acl_create() safer and cleaner (diff) | |
download | linux-f0c9cadae6706b6ce00ef724121fbf0f34187e22.tar.xz linux-f0c9cadae6706b6ce00ef724121fbf0f34187e22.zip |
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: |