aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/the_nilfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/the_nilfs.h')
-rw-r--r--fs/nilfs2/the_nilfs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nilfs2/the_nilfs.h b/fs/nilfs2/the_nilfs.h
index af566e78f7af..d750e48257c9 100644
--- a/fs/nilfs2/the_nilfs.h
+++ b/fs/nilfs2/the_nilfs.h
@@ -280,4 +280,9 @@ static inline __u64 nilfs_last_cno(struct the_nilfs *nilfs)
280 return cno; 280 return cno;
281} 281}
282 282
283static inline int nilfs_segment_is_active(struct the_nilfs *nilfs, __u64 n)
284{
285 return n == nilfs->ns_segnum || n == nilfs->ns_nextnum;
286}
287
283#endif /* _THE_NILFS_H */ 288#endif /* _THE_NILFS_H */