mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
dquot: move dquot drop responsibility into the filesystem
Currently clear_inode calls vfs_dq_drop directly. This means we tie the quota code into the VFS. Get rid of that and make the filesystem responsible for the drop inside the ->clear_inode superblock operation. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
b43fa8284d
commit
257ba15ced
9 changed files with 27 additions and 1 deletions
|
|
@ -131,6 +131,11 @@ static void jfs_destroy_inode(struct inode *inode)
|
|||
kmem_cache_free(jfs_inode_cachep, ji);
|
||||
}
|
||||
|
||||
static void jfs_clear_inode(struct inode *inode)
|
||||
{
|
||||
vfs_dq_drop(inode);
|
||||
}
|
||||
|
||||
static int jfs_statfs(struct dentry *dentry, struct kstatfs *buf)
|
||||
{
|
||||
struct jfs_sb_info *sbi = JFS_SBI(dentry->d_sb);
|
||||
|
|
@ -745,6 +750,7 @@ static const struct super_operations jfs_super_operations = {
|
|||
.dirty_inode = jfs_dirty_inode,
|
||||
.write_inode = jfs_write_inode,
|
||||
.delete_inode = jfs_delete_inode,
|
||||
.clear_inode = jfs_clear_inode,
|
||||
.put_super = jfs_put_super,
|
||||
.sync_fs = jfs_sync_fs,
|
||||
.freeze_fs = jfs_freeze,
|
||||
|
|
|
|||
Loading…
Reference in a new issue