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/ext4 | |
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/ext4')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index b4253fb7bab6..56554c8850ec 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -761,6 +761,7 @@ static void destroy_inodecache(void) | |||
761 | 761 | ||
762 | static void ext4_clear_inode(struct inode *inode) | 762 | static void ext4_clear_inode(struct inode *inode) |
763 | { | 763 | { |
764 | vfs_dq_drop(inode); | ||
764 | ext4_discard_preallocations(inode); | 765 | ext4_discard_preallocations(inode); |
765 | if (EXT4_JOURNAL(inode)) | 766 | if (EXT4_JOURNAL(inode)) |
766 | jbd2_journal_release_jbd_inode(EXT4_SB(inode->i_sb)->s_journal, | 767 | jbd2_journal_release_jbd_inode(EXT4_SB(inode->i_sb)->s_journal, |