diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-03-03 09:05:04 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-03-04 18:20:29 -0500 |
commit | 257ba15cedf1288f0c96118d7e63947231d27278 (patch) | |
tree | 7a977a0ea08a324ce74aedce19406cb0688f15e2 /fs/reiserfs | |
parent | b43fa8284d7790d9cca32c9c55e24f29be2fa33b (diff) |
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 <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/super.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 97c3e8ed7db6..6b24e70e329b 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c | |||
@@ -578,6 +578,11 @@ out: | |||
578 | reiserfs_write_unlock_once(inode->i_sb, lock_depth); | 578 | reiserfs_write_unlock_once(inode->i_sb, lock_depth); |
579 | } | 579 | } |
580 | 580 | ||
581 | static void reiserfs_clear_inode(struct inode *inode) | ||
582 | { | ||
583 | vfs_dq_drop(inode); | ||
584 | } | ||
585 | |||
581 | #ifdef CONFIG_QUOTA | 586 | #ifdef CONFIG_QUOTA |
582 | static ssize_t reiserfs_quota_write(struct super_block *, int, const char *, | 587 | static ssize_t reiserfs_quota_write(struct super_block *, int, const char *, |
583 | size_t, loff_t); | 588 | size_t, loff_t); |
@@ -590,6 +595,7 @@ static const struct super_operations reiserfs_sops = { | |||
590 | .destroy_inode = reiserfs_destroy_inode, | 595 | .destroy_inode = reiserfs_destroy_inode, |
591 | .write_inode = reiserfs_write_inode, | 596 | .write_inode = reiserfs_write_inode, |
592 | .dirty_inode = reiserfs_dirty_inode, | 597 | .dirty_inode = reiserfs_dirty_inode, |
598 | .clear_inode = reiserfs_clear_inode, | ||
593 | .delete_inode = reiserfs_delete_inode, | 599 | .delete_inode = reiserfs_delete_inode, |
594 | .put_super = reiserfs_put_super, | 600 | .put_super = reiserfs_put_super, |
595 | .write_super = reiserfs_write_super, | 601 | .write_super = reiserfs_write_super, |