summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-03-03 15:05:04 +0100
committerJan Kara <jack@suse.cz>2010-03-05 00:20:29 +0100
commit257ba15cedf1288f0c96118d7e63947231d27278 (patch)
tree7a977a0ea08a324ce74aedce19406cb0688f15e2 /fs/udf
parentdquot: cleanup dquot transfer routine (diff)
downloadlinux-257ba15cedf1288f0c96118d7e63947231d27278.tar.xz
linux-257ba15cedf1288f0c96118d7e63947231d27278.zip
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/udf')
-rw-r--r--fs/udf/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index f90231eb2916..859389a3832b 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -108,6 +108,8 @@ void udf_clear_inode(struct inode *inode)
(unsigned long long)inode->i_size,
(unsigned long long)iinfo->i_lenExtents);
}
+
+ vfs_dq_drop(inode);
kfree(iinfo->i_ext.i_data);
iinfo->i_ext.i_data = NULL;
}