dir.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | dir.c (70246286e94c335b5bea0cbc68a17a96dd620281) |
---|---|
1/* 2 * dir.c 3 * 4 * PURPOSE 5 * Directory handling routines for the OSTA-UDF(tm) filesystem. 6 * 7 * COPYRIGHT 8 * This file is distributed under the terms of the GNU General Public --- 99 unchanged lines hidden (view full) --- 108 block = udf_get_lb_pblock(sb, &eloc, offset + i); 109 tmp = udf_tgetblk(sb, block); 110 if (tmp && !buffer_uptodate(tmp) && !buffer_locked(tmp)) 111 bha[num++] = tmp; 112 else 113 brelse(tmp); 114 } 115 if (num) { | 1/* 2 * dir.c 3 * 4 * PURPOSE 5 * Directory handling routines for the OSTA-UDF(tm) filesystem. 6 * 7 * COPYRIGHT 8 * This file is distributed under the terms of the GNU General Public --- 99 unchanged lines hidden (view full) --- 108 block = udf_get_lb_pblock(sb, &eloc, offset + i); 109 tmp = udf_tgetblk(sb, block); 110 if (tmp && !buffer_uptodate(tmp) && !buffer_locked(tmp)) 111 bha[num++] = tmp; 112 else 113 brelse(tmp); 114 } 115 if (num) { |
116 ll_rw_block(READA, num, bha); | 116 ll_rw_block(REQ_OP_READ, REQ_RAHEAD, num, bha); |
117 for (i = 0; i < num; i++) 118 brelse(bha[i]); 119 } 120 } 121 } 122 123 while (nf_pos < size) { 124 struct kernel_lb_addr tloc; --- 72 unchanged lines hidden (view full) --- 197 198 return ret; 199} 200 201/* readdir and lookup functions */ 202const struct file_operations udf_dir_operations = { 203 .llseek = generic_file_llseek, 204 .read = generic_read_dir, | 117 for (i = 0; i < num; i++) 118 brelse(bha[i]); 119 } 120 } 121 } 122 123 while (nf_pos < size) { 124 struct kernel_lb_addr tloc; --- 72 unchanged lines hidden (view full) --- 197 198 return ret; 199} 200 201/* readdir and lookup functions */ 202const struct file_operations udf_dir_operations = { 203 .llseek = generic_file_llseek, 204 .read = generic_read_dir, |
205 .iterate = udf_readdir, | 205 .iterate_shared = udf_readdir, |
206 .unlocked_ioctl = udf_ioctl, 207 .fsync = generic_file_fsync, 208}; | 206 .unlocked_ioctl = udf_ioctl, 207 .fsync = generic_file_fsync, 208}; |