data.c (442a9dbd577e38211d296f35443b5e257bb5a9b3) data.c (1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a)
1/*
2 * fs/f2fs/data.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

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

1474 }
1475 return PTR_ERR(fio->encrypted_page);
1476}
1477
1478static inline bool need_inplace_update(struct f2fs_io_info *fio)
1479{
1480 struct inode *inode = fio->page->mapping->host;
1481
1/*
2 * fs/f2fs/data.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

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

1474 }
1475 return PTR_ERR(fio->encrypted_page);
1476}
1477
1478static inline bool need_inplace_update(struct f2fs_io_info *fio)
1479{
1480 struct inode *inode = fio->page->mapping->host;
1481
1482 if (f2fs_is_pinned_file(inode))
1483 return true;
1482 if (S_ISDIR(inode->i_mode) || f2fs_is_atomic_file(inode))
1483 return false;
1484 if (is_cold_data(fio->page))
1485 return false;
1486 if (IS_ATOMIC_WRITTEN_PAGE(fio->page))
1487 return false;
1488
1489 return need_inplace_update_policy(inode, fio);

--- 916 unchanged lines hidden ---
1484 if (S_ISDIR(inode->i_mode) || f2fs_is_atomic_file(inode))
1485 return false;
1486 if (is_cold_data(fio->page))
1487 return false;
1488 if (IS_ATOMIC_WRITTEN_PAGE(fio->page))
1489 return false;
1490
1491 return need_inplace_update_policy(inode, fio);

--- 916 unchanged lines hidden ---