segment.h (407da561244b9d51e6a794d6305ba38ec2c9d907) | segment.h (45c98f5a58f36c35ecf5a149cbf69cf5fd022120) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * fs/f2fs/segment.h 4 * 5 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 6 * http://www.samsung.com/ 7 */ 8#include <linux/blkdev.h> --- 667 unchanged lines hidden (view full) --- 676 F2FS_IPU_UTIL, 677 F2FS_IPU_SSR_UTIL, 678 F2FS_IPU_FSYNC, 679 F2FS_IPU_ASYNC, 680 F2FS_IPU_NOCACHE, 681 F2FS_IPU_HONOR_OPU_WRITE, 682}; 683 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * fs/f2fs/segment.h 4 * 5 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 6 * http://www.samsung.com/ 7 */ 8#include <linux/blkdev.h> --- 667 unchanged lines hidden (view full) --- 676 F2FS_IPU_UTIL, 677 F2FS_IPU_SSR_UTIL, 678 F2FS_IPU_FSYNC, 679 F2FS_IPU_ASYNC, 680 F2FS_IPU_NOCACHE, 681 F2FS_IPU_HONOR_OPU_WRITE, 682}; 683 |
684#define F2FS_IPU_POLICY(name) \ 685static inline int IS_##name(struct f2fs_sb_info *sbi) \ 686{ \ 687 return SM_I(sbi)->ipu_policy & BIT(name); \ 688} 689 690F2FS_IPU_POLICY(F2FS_IPU_FORCE); 691F2FS_IPU_POLICY(F2FS_IPU_SSR); 692F2FS_IPU_POLICY(F2FS_IPU_UTIL); 693F2FS_IPU_POLICY(F2FS_IPU_SSR_UTIL); 694F2FS_IPU_POLICY(F2FS_IPU_FSYNC); 695F2FS_IPU_POLICY(F2FS_IPU_ASYNC); 696F2FS_IPU_POLICY(F2FS_IPU_NOCACHE); 697F2FS_IPU_POLICY(F2FS_IPU_HONOR_OPU_WRITE); 698 |
|
684static inline unsigned int curseg_segno(struct f2fs_sb_info *sbi, 685 int type) 686{ 687 struct curseg_info *curseg = CURSEG_I(sbi, type); 688 return curseg->segno; 689} 690 691static inline unsigned char curseg_alloc_type(struct f2fs_sb_info *sbi, --- 227 unchanged lines hidden (view full) --- 919 wakeup = true; 920 break; 921 } 922 } 923 mutex_unlock(&dcc->cmd_lock); 924 if (!wakeup || !is_idle(sbi, DISCARD_TIME)) 925 return; 926wake_up: | 699static inline unsigned int curseg_segno(struct f2fs_sb_info *sbi, 700 int type) 701{ 702 struct curseg_info *curseg = CURSEG_I(sbi, type); 703 return curseg->segno; 704} 705 706static inline unsigned char curseg_alloc_type(struct f2fs_sb_info *sbi, --- 227 unchanged lines hidden (view full) --- 934 wakeup = true; 935 break; 936 } 937 } 938 mutex_unlock(&dcc->cmd_lock); 939 if (!wakeup || !is_idle(sbi, DISCARD_TIME)) 940 return; 941wake_up: |
927 dcc->discard_wake = 1; | 942 dcc->discard_wake = true; |
928 wake_up_interruptible_all(&dcc->discard_wait_queue); 929} | 943 wake_up_interruptible_all(&dcc->discard_wait_queue); 944} |