函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-29 10:31:32
Last Modify:2020-03-18 10:18:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Lock two pages, ensuring that we lock in offset order if the pages are from* the same file.

函数原型:static void vfs_lock_two_pages(struct page *page1, struct page *page2)

返回类型:void

参数:

类型参数名称
struct page *page1
struct page *page2
1834  如果 Our offset within mapping. 大于 Our offset within mapping. swap - swap values of @a and @b*@a: first value*@b: second value(page1, page2)
1837  lock_page may only be called if we have the page's inode pinned.
1838  如果page1不等于page2lock_page may only be called if we have the page's inode pinned.
调用者
名称描述
vfs_dedupe_file_range_compareCompare extents of two files to see if they are the same.* Caller must have locked both inodes to prevent write races.