ioctl(F2FS_IOC_MOVE_RANGE) can truncate or punch hole on pinned file,
fix to disallow it.
Fixes: 5fed0be8583f ("f2fs: do not allow partial truncation on pinned file")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
                        goto out;
        }
 
-       if (f2fs_compressed_file(src) || f2fs_compressed_file(dst)) {
+       if (f2fs_compressed_file(src) || f2fs_compressed_file(dst) ||
+               f2fs_is_pinned_file(src) || f2fs_is_pinned_file(dst)) {
                ret = -EOPNOTSUPP;
                goto out_unlock;
        }