mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
quota: clean up quota active checks
The various quota operations check for any quota beeing active on a superblock, and the inode not having the noquota flag. Merge these two checks into a dquot_active check and move that into dquot.c as that's the only place where it's needed. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
ade7ce31c2
commit
189eef59e7
2 changed files with 16 additions and 17 deletions
|
@ -145,11 +145,6 @@ static inline bool sb_has_quota_active(struct super_block *sb, int type)
|
|||
!sb_has_quota_suspended(sb, type);
|
||||
}
|
||||
|
||||
static inline unsigned sb_any_quota_active(struct super_block *sb)
|
||||
{
|
||||
return sb_any_quota_loaded(sb) & ~sb_any_quota_suspended(sb);
|
||||
}
|
||||
|
||||
/*
|
||||
* Operations supported for diskquotas.
|
||||
*/
|
||||
|
@ -194,11 +189,6 @@ static inline int sb_has_quota_active(struct super_block *sb, int type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int sb_any_quota_active(struct super_block *sb)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void dquot_initialize(struct inode *inode)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue