segment.h (d5432503bfb49f3425bad0b850714ffd8b533cfc) segment.h (c6ac4c0ec416e77cab09cac6cee2d100fbd7fc82)
1/*
2 * fs/f2fs/segment.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 643 unchanged lines hidden (view full) ---

652
653 return block_addr + sit_i->sit_base_addr;
654}
655
656static inline void set_to_next_sit(struct sit_info *sit_i, unsigned int start)
657{
658 unsigned int block_off = SIT_BLOCK_OFFSET(start);
659
1/*
2 * fs/f2fs/segment.h
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 643 unchanged lines hidden (view full) ---

652
653 return block_addr + sit_i->sit_base_addr;
654}
655
656static inline void set_to_next_sit(struct sit_info *sit_i, unsigned int start)
657{
658 unsigned int block_off = SIT_BLOCK_OFFSET(start);
659
660 if (f2fs_test_bit(block_off, sit_i->sit_bitmap))
661 f2fs_clear_bit(block_off, sit_i->sit_bitmap);
662 else
663 f2fs_set_bit(block_off, sit_i->sit_bitmap);
660 f2fs_change_bit(block_off, sit_i->sit_bitmap);
664}
665
666static inline unsigned long long get_mtime(struct f2fs_sb_info *sbi)
667{
668 struct sit_info *sit_i = SIT_I(sbi);
669 return sit_i->elapsed_time + CURRENT_TIME_SEC.tv_sec -
670 sit_i->mounted_time;
671}

--- 78 unchanged lines hidden ---
661}
662
663static inline unsigned long long get_mtime(struct f2fs_sb_info *sbi)
664{
665 struct sit_info *sit_i = SIT_I(sbi);
666 return sit_i->elapsed_time + CURRENT_TIME_SEC.tv_sec -
667 sit_i->mounted_time;
668}

--- 78 unchanged lines hidden ---