segment.c (0a595ebaaa6b53a2226d3fee2a2fd616ea5ba378) | segment.c (26a28a0c1eb756ba18bfb1f93309c4b4406b9cd9) |
---|---|
1/* 2 * fs/f2fs/segment.c 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 --- 229 unchanged lines hidden (view full) --- 238 return err; 239} 240 241void drop_inmem_pages(struct inode *inode) 242{ 243 struct f2fs_inode_info *fi = F2FS_I(inode); 244 245 clear_inode_flag(inode, FI_ATOMIC_FILE); | 1/* 2 * fs/f2fs/segment.c 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 --- 229 unchanged lines hidden (view full) --- 238 return err; 239} 240 241void drop_inmem_pages(struct inode *inode) 242{ 243 struct f2fs_inode_info *fi = F2FS_I(inode); 244 245 clear_inode_flag(inode, FI_ATOMIC_FILE); |
246 stat_dec_atomic_write(inode); |
|
246 247 mutex_lock(&fi->inmem_lock); 248 __revoke_inmem_pages(inode, &fi->inmem_pages, true, false); 249 mutex_unlock(&fi->inmem_lock); 250} 251 252static int __commit_inmem_pages(struct inode *inode, 253 struct list_head *revoke_list) --- 2563 unchanged lines hidden --- | 247 248 mutex_lock(&fi->inmem_lock); 249 __revoke_inmem_pages(inode, &fi->inmem_pages, true, false); 250 mutex_unlock(&fi->inmem_lock); 251} 252 253static int __commit_inmem_pages(struct inode *inode, 254 struct list_head *revoke_list) --- 2563 unchanged lines hidden --- |