函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:08:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dquot_load_quota_sb

函数原型:int dquot_load_quota_sb(struct super_block *sb, int type, int format_id, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
intformat_id
unsigned intflags
2335  fmt等于find_quota_format(format_id)
2336  dqopt等于sb_dqopt(sb)
2340  BUG_ON(flags & DQUOT_SUSPENDED)
2342  如果WARN_ON_ONCE(rylock for reading -- returns 1 if successful, 0 if contention)则lease a read lock
2345  如果非fmt则返回:负ESRCH
2347  如果(!quota_write || !quota_read || (type == lement used for project quotas && get_projid == NULL))则
2349  error等于负EINVAL
2350  转到:out_fmt
2353  如果s_user_ns不等于userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?
2354  error等于负EINVAL
2355  转到:out_fmt
2358  如果非flags按位与DQUOT_USAGE_ENABLED的值则
2359  error等于负EINVAL
2360  转到:out_fmt
2362  如果Does kernel know about any quota information for given sb + type?
2363  error等于负EBUSY
2364  转到:out_fmt
2367  如果非 Flags for diskquotas on this device 按位与DQUOT_QUOTA_SYS_FILE的值则
2374  Write out and wait upon all dirty data associated with this* superblock. Filesystem data as well as the underlying block* device. Takes the superblock lock.
2375  Invalidate clean unused buffers and pagecache.
2378  error等于负EINVAL
2379  如果非check_quota_file(sb, type)则转到:out_fmt
2382  Operations for each type [type]等于 Operations of format
2383  dqi_format等于fmt
2384  Id of the dqi_format - used when turning * quotas on after remount RW 等于format_id
2385  初始化链表头
2386  error等于read_file_info(sb, type)
2387  如果error小于0则转到:out_fmt
2389  如果 Flags for diskquotas on this device 按位与DQUOT_QUOTA_SYS_FILE
2390  加自旋锁
2391  DFQ_ flags [dq_data_lock] 或等于Quota stored in a system file
2392  自旋锁解锁
2394  加自旋锁
2395  Flags for diskquotas on this device 或等于dquot_state_flag(flags, type)
2396  自旋锁解锁
2398  error等于This routine is guarded by s_umount semaphore
2399  如果errorTurn quota off on a device. type == -1 ==> quotaoff for all types (umount)
2402  返回:error
2403  out_fmt :
2404  put_quota_format(fmt)
2406  返回:error
调用者
名称描述
dquot_load_quota_inodeMore powerful function for turning on quotas on given quota inode allowing* setting of individual quota flags
dquot_resumeReenable quotas on remount RW