Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-28 20:01:29
Last Modify:2020-03-18 10:18:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static void vfs_lock_two_pages(struct page *page1, struct page *page2)

Type:void

Parameter:

TypeParameterName
struct page *page1
struct page *page2
1834  If Our offset within mapping. > Our offset within mapping. Then 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  If page1 != page2 Then lock_page may only be called if we have the page's inode pinned.
Caller
NameDescribe
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.