file.c (97767500781fae9c53b7d227f99f1dbb0dfe9a4f) file.c (901d745f8e6a61a835b12314d8b8a41df7012596)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * fs/f2fs/file.c
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#include <linux/fs.h>

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

1653 if (err && err != -ENODATA && err != -EAGAIN)
1654 goto out_err;
1655 }
1656
1657 down_write(&sbi->pin_sem);
1658 map.m_seg_type = CURSEG_COLD_DATA_PINNED;
1659
1660 f2fs_lock_op(sbi);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * fs/f2fs/file.c
4 *
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com/
7 */
8#include <linux/fs.h>

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

1653 if (err && err != -ENODATA && err != -EAGAIN)
1654 goto out_err;
1655 }
1656
1657 down_write(&sbi->pin_sem);
1658 map.m_seg_type = CURSEG_COLD_DATA_PINNED;
1659
1660 f2fs_lock_op(sbi);
1661 f2fs_allocate_new_segments(sbi, CURSEG_COLD_DATA);
1661 f2fs_allocate_new_segment(sbi, CURSEG_COLD_DATA);
1662 f2fs_unlock_op(sbi);
1663
1664 err = f2fs_map_blocks(inode, &map, 1, F2FS_GET_BLOCK_PRE_DIO);
1665 up_write(&sbi->pin_sem);
1666
1667 done += map.m_len;
1668 len -= map.m_len;
1669 map.m_lblk += map.m_len;

--- 2372 unchanged lines hidden ---
1662 f2fs_unlock_op(sbi);
1663
1664 err = f2fs_map_blocks(inode, &map, 1, F2FS_GET_BLOCK_PRE_DIO);
1665 up_write(&sbi->pin_sem);
1666
1667 done += map.m_len;
1668 len -= map.m_len;
1669 map.m_lblk += map.m_len;

--- 2372 unchanged lines hidden ---