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/ufs/super.c | |
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/ufs/super.c')
-rw-r--r-- | fs/ufs/super.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 143c20bfb04b..95d61cb3a5b8 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1432,6 +1432,11 @@ static void destroy_inodecache(void) | |||
1432 | kmem_cache_destroy(ufs_inode_cachep); | 1432 | kmem_cache_destroy(ufs_inode_cachep); |
1433 | } | 1433 | } |
1434 | 1434 | ||
1435 | static void ufs_clear_inode(struct inode *inode) | ||
1436 | { | ||
1437 | vfs_dq_drop(inode); | ||
1438 | } | ||
1439 | |||
1435 | #ifdef CONFIG_QUOTA | 1440 | #ifdef CONFIG_QUOTA |
1436 | static ssize_t ufs_quota_read(struct super_block *, int, char *,size_t, loff_t); | 1441 | static ssize_t ufs_quota_read(struct super_block *, int, char *,size_t, loff_t); |
1437 | static ssize_t ufs_quota_write(struct super_block *, int, const char *, size_t, loff_t); | 1442 | static ssize_t ufs_quota_write(struct super_block *, int, const char *, size_t, loff_t); |
@@ -1442,6 +1447,7 @@ static const struct super_operations ufs_super_ops = { | |||
1442 | .destroy_inode = ufs_destroy_inode, | 1447 | .destroy_inode = ufs_destroy_inode, |
1443 | .write_inode = ufs_write_inode, | 1448 | .write_inode = ufs_write_inode, |
1444 | .delete_inode = ufs_delete_inode, | 1449 | .delete_inode = ufs_delete_inode, |
1450 | .clear_inode = ufs_clear_inode, | ||
1445 | .put_super = ufs_put_super, | 1451 | .put_super = ufs_put_super, |
1446 | .write_super = ufs_write_super, | 1452 | .write_super = ufs_write_super, |
1447 | .sync_fs = ufs_sync_fs, | 1453 | .sync_fs = ufs_sync_fs, |