btnode.c (bc030d6cb9532877c1c5a3f5e7123344fa24a285) | btnode.c (365e215ce1f154e288ff0f7c9acbdf5421f57949) |
---|---|
1/* 2 * btnode.c - NILFS B-tree node cache 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 --- 90 unchanged lines hidden (view full) --- 99 page = bh->b_page; 100 101 if (buffer_uptodate(bh) || buffer_dirty(bh)) 102 goto found; 103 104 if (pblocknr == 0) { 105 pblocknr = blocknr; 106 if (inode->i_ino != NILFS_DAT_INO) { | 1/* 2 * btnode.c - NILFS B-tree node cache 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 --- 90 unchanged lines hidden (view full) --- 99 page = bh->b_page; 100 101 if (buffer_uptodate(bh) || buffer_dirty(bh)) 102 goto found; 103 104 if (pblocknr == 0) { 105 pblocknr = blocknr; 106 if (inode->i_ino != NILFS_DAT_INO) { |
107 struct inode *dat = 108 nilfs_dat_inode(NILFS_I_NILFS(inode)); | 107 struct inode *dat = NILFS_I_NILFS(inode)->ns_dat; |
109 110 /* blocknr is a virtual block number */ 111 err = nilfs_dat_translate(dat, blocknr, &pblocknr); 112 if (unlikely(err)) { 113 brelse(bh); 114 goto out_locked; 115 } 116 } --- 197 unchanged lines hidden --- | 108 109 /* blocknr is a virtual block number */ 110 err = nilfs_dat_translate(dat, blocknr, &pblocknr); 111 if (unlikely(err)) { 112 brelse(bh); 113 goto out_locked; 114 } 115 } --- 197 unchanged lines hidden --- |