mdt.c (b34a65069caa56b691ebab5ae0b8e54d16406d16) mdt.c (db38d5ad323362bfca118b52fe5906f97a69fb45)
1/*
2 * mdt.c - meta data file for NILFS
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 557 unchanged lines hidden (view full) ---

566 nilfs_bmap_clear(ii->i_bmap);
567 nilfs_btnode_cache_clear(&ii->i_btnode_cache);
568}
569
570void nilfs_mdt_destroy(struct inode *inode)
571{
572 struct nilfs_mdt_info *mdi = NILFS_MDT(inode);
573
1/*
2 * mdt.c - meta data file for NILFS
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 557 unchanged lines hidden (view full) ---

566 nilfs_bmap_clear(ii->i_bmap);
567 nilfs_btnode_cache_clear(&ii->i_btnode_cache);
568}
569
570void nilfs_mdt_destroy(struct inode *inode)
571{
572 struct nilfs_mdt_info *mdi = NILFS_MDT(inode);
573
574 if (mdi->mi_palloc_cache)
575 nilfs_palloc_destroy_cache(inode);
574 nilfs_mdt_clear(inode);
575
576 kfree(mdi->mi_bgl); /* kfree(NULL) is safe */
577 kfree(mdi);
578 nilfs_destroy_inode(inode);
579}
576 nilfs_mdt_clear(inode);
577
578 kfree(mdi->mi_bgl); /* kfree(NULL) is safe */
579 kfree(mdi);
580 nilfs_destroy_inode(inode);
581}