• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/affs/

Lines Matching defs:ext

22 static struct buffer_head *affs_alloc_extblock(struct inode *inode, struct buffer_head *bh, u32 ext);
23 static inline struct buffer_head *affs_get_extblock(struct inode *inode, u32 ext);
24 static struct buffer_head *affs_get_extblock_slow(struct inode *inode, u32 ext);
140 affs_alloc_extblock(struct inode *inode, struct buffer_head *bh, u32 ext)
178 affs_get_extblock(struct inode *inode, u32 ext)
182 if (ext == AFFS_I(inode)->i_ext_last)
186 bh = affs_get_extblock_slow(inode, ext);
192 affs_get_extblock_slow(struct inode *inode, u32 ext)
200 if (ext == AFFS_I(inode)->i_ext_last + 1) {
204 if (ext < AFFS_I(inode)->i_extcnt)
206 if (ext > AFFS_I(inode)->i_extcnt)
208 bh = affs_alloc_extblock(inode, bh, ext);
214 if (ext == 0) {
220 if (ext >= AFFS_I(inode)->i_extcnt) {
224 if (ext > AFFS_I(inode)->i_extcnt)
228 prev_bh = affs_get_extblock(inode, ext - 1);
231 bh = affs_alloc_extblock(inode, prev_bh, ext);
240 lc_idx = ext >> AFFS_I(inode)->i_lc_shift;
241 lc_off = ext & AFFS_I(inode)->i_lc_mask;
259 ac_idx = (ext - lc_idx - 1) & AFFS_AC_MASK;
260 if (AFFS_I(inode)->i_ac[ac_idx].ext == ext) {
266 tmp = ext;
270 if (AFFS_I(inode)->i_ac[idx].ext == tmp) {
288 } while (tmp < ext);
293 AFFS_I(inode)->i_ac[ac_idx].ext = ext;
307 AFFS_I(inode)->i_ext_last = ext;
323 u32 ext;
340 ext = (u32)block / AFFS_SB(sb)->s_hashsize;
341 block -= ext * AFFS_SB(sb)->s_hashsize;
342 ext_bh = affs_get_extblock(inode, ext);
789 u32 ext, ext_key;
799 ext = 0;
802 ext = last_blk / AFFS_SB(sb)->s_hashsize;
826 ext_bh = affs_get_extblock(inode, ext);
828 affs_warning(sb, "truncate", "unexpected read error for ext block %u (%d)",
829 ext, PTR_ERR(ext_bh));
834 i = (ext + 1) >> AFFS_I(inode)->i_lc_shift;
842 if (AFFS_I(inode)->i_ac[i].ext >= ext)
843 AFFS_I(inode)->i_ac[i].ext = 0;
869 AFFS_I(inode)->i_extcnt = ext + 1;
875 ext, PTR_ERR(ext_bh));