mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -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
|
|
@ -578,6 +578,11 @@ out:
|
|||
reiserfs_write_unlock_once(inode->i_sb, lock_depth);
|
||||
}
|
||||
|
||||
static void reiserfs_clear_inode(struct inode *inode)
|
||||
{
|
||||
vfs_dq_drop(inode);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_QUOTA
|
||||
static ssize_t reiserfs_quota_write(struct super_block *, int, const char *,
|
||||
size_t, loff_t);
|
||||
|
|
@ -590,6 +595,7 @@ static const struct super_operations reiserfs_sops = {
|
|||
.destroy_inode = reiserfs_destroy_inode,
|
||||
.write_inode = reiserfs_write_inode,
|
||||
.dirty_inode = reiserfs_dirty_inode,
|
||||
.clear_inode = reiserfs_clear_inode,
|
||||
.delete_inode = reiserfs_delete_inode,
|
||||
.put_super = reiserfs_put_super,
|
||||
.write_super = reiserfs_write_super,
|
||||
|
|
|
|||
Loading…
Reference in a new issue