bmap.c (e828949e5b42bfd234ee537cdb7c5e3a577958a3) | bmap.c (365e215ce1f154e288ff0f7c9acbdf5421f57949) |
---|---|
1/* 2 * bmap.c - NILFS block mapping. 3 * 4 * Copyright (C) 2006-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 --- 21 unchanged lines hidden (view full) --- 30#include "direct.h" 31#include "btnode.h" 32#include "mdt.h" 33#include "dat.h" 34#include "alloc.h" 35 36struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) 37{ | 1/* 2 * bmap.c - NILFS block mapping. 3 * 4 * Copyright (C) 2006-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 --- 21 unchanged lines hidden (view full) --- 30#include "direct.h" 31#include "btnode.h" 32#include "mdt.h" 33#include "dat.h" 34#include "alloc.h" 35 36struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) 37{ |
38 return nilfs_dat_inode(NILFS_I_NILFS(bmap->b_inode)); | 38 return NILFS_I_NILFS(bmap->b_inode)->ns_dat; |
39} 40 41static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, 42 const char *fname, int err) 43{ 44 struct inode *inode = bmap->b_inode; 45 46 if (err == -EINVAL) { --- 531 unchanged lines hidden --- | 39} 40 41static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, 42 const char *fname, int err) 43{ 44 struct inode *inode = bmap->b_inode; 45 46 if (err == -EINVAL) { --- 531 unchanged lines hidden --- |