Skip to content

Commit

Permalink
nilfs2: remove nilfs_dat_prepare_free function
Browse files Browse the repository at this point in the history
This function is unused.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
  • Loading branch information
Ryusuke Konishi committed Jun 10, 2009
1 parent 07a2039 commit 6582207
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions fs/nilfs2/dat.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,6 @@ void nilfs_dat_abort_alloc(struct inode *dat, struct nilfs_palloc_req *req)
nilfs_palloc_abort_alloc_entry(dat, req);
}

int nilfs_dat_prepare_free(struct inode *dat, struct nilfs_palloc_req *req)
{
int ret;

ret = nilfs_palloc_prepare_free_entry(dat, req);
if (ret < 0)
return ret;
ret = nilfs_dat_prepare_entry(dat, req, 0);
if (ret < 0) {
nilfs_palloc_abort_free_entry(dat, req);
return ret;
}
return 0;
}

void nilfs_dat_commit_free(struct inode *dat, struct nilfs_palloc_req *req)
{
struct nilfs_dat_entry *entry;
Expand Down

0 comments on commit 6582207

Please sign in to comment.