Function report |
Source Code:fs\super.c |
Create Date:2022-07-28 20:02:29 |
Last Modify:2022-05-24 06:42:17 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_tree_bdev - Get a superblock based on a single block device*@fc: The filesystem context holding the parameters*@fill_super: Helper to initialise a new superblock
Proto:int get_tree_bdev(struct fs_context *fc, int (*fill_super)(struct super_block *, struct fs_context *))
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct fs_context * | fc | |
int (* | fill_super |
1284 | error = 0 |
1286 | If Not (sb_flags & Mount read-only ) Then mode |= le is open for writing |
1292 | bdev = blkdev_get_by_path(source, mode, fs_type) |
1302 | mutex_lock( & Mutex for freeze ) |
1303 | If The counter of freeze processes > 0 Then |
1305 | blkdev_put(bdev, mode) |
1307 | Return -EBUSY |
1315 | blkdev_put(bdev, mode) |
1319 | If s_root Then |
1321 | If (sb_flags ^ s_flags) & Mount read-only Then |
1324 | blkdev_put(bdev, mode) |
1325 | Return -EBUSY |
1335 | lease a write lock |
1336 | blkdev_put(bdev, mode) |
1337 | lock for writing |
1338 | Else |
1341 | sb_set_blocksize(s, block_size(bdev)) |
1342 | error = fill_super(s, fc) |
1343 | If error Then |
1345 | Return error |
1353 | root = get a reference to a dentry |
1354 | Return 0 |
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 |