1SB_START_PAGEFAULT(9)            The Linux VFS           SB_START_PAGEFAULT(9)
2
3
4

NAME

6       sb_start_pagefault - get write access to a superblock from a page fault
7

SYNOPSIS

9       void sb_start_pagefault(struct super_block * sb);
10

ARGUMENTS

12       sb
13           the super we write to
14

DESCRIPTION

16       When a process starts handling write page fault, it should embed the
17       operation into sb_start_pagefault - sb_end_pagefault pair to get
18       exclusion against file system freezing. This is needed since the page
19       fault is going to dirty a page. This function increments number of
20       running page faults preventing freezing. If the file system is already
21       frozen, the function waits until the file system is thawed.
22
23       Since page fault freeze protection behaves as a lock, users have to
24       preserve ordering of freeze protection and other filesystem locks. It
25       is advised to put sb_start_pagefault close to mmap_sem in lock
26       ordering. Page fault
27

HANDLING CODE IMPLIES LOCK DEPENDENCY

29       mmap_sem -> sb_start_pagefault
30
32Kernel Hackers Manual 3.10         June 2019             SB_START_PAGEFAULT(9)
Impressum