Function report |
Source Code:fs\super.c |
Create Date:2022-07-28 20:02:31 |
| Last Modify:2022-05-24 06:42:17 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ze_super - lock the filesystem and force it into a consistent state*@sb: the super to lock* Syncs the super to make sure the filesystem is consistent and calls the fs's* freeze_fs. Subsequent calls to this without first thawing the fs will return* -EBUSY.
Proto:int freeze_super(struct super_block *sb)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct super_block * | sb | >s_writers.frozen is protected by sb->s_umount. |
| 1764 | atomic_inc( & s_active) |
| 1765 | lock for writing |
| 1766 | If frozen != SB_UNFROZEN Then |
| 1768 | Return -EBUSY |
| 1772 | lease a write lock |
| 1773 | Return 0 |
| 1776 | If sb_rdonly(>s_writers.frozen is protected by sb->s_umount.) Then |
| 1783 | frozen = SB_FREEZE_WRITE |
| 1785 | lease a write lock |
| 1787 | lock for writing |
| 1790 | frozen = SB_FREEZE_PAGEFAULT |
| 1797 | frozen = SB_FREEZE_FS |
| 1800 | If freeze_fs Then |
| 1802 | If ret Then |
| 1816 | frozen = SB_FREEZE_COMPLETE |
| 1818 | lease a write lock |
| 1819 | Return 0 |
| Name | Describe |
|---|---|
| ioctl_fsfreeze | |
| freeze_bdev | ze_bdev -- lock a filesystem and force it into a consistent state*@bdev: blockdevice to lock* If a superblock is found on this device, we take the s_umount semaphore* on it to make sure nobody unmounts until the snapshot creation is done |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |