Lines Matching refs:bhs

1082 			      struct buffer_head **bhs, int nr_bhs)
1092 bhs[n] = sb_getblk(sb, blknr);
1093 if (!bhs[n]) {
1098 lock_buffer(bhs[n]);
1099 memset(bhs[n]->b_data, 0, sb->s_blocksize);
1100 set_buffer_uptodate(bhs[n]);
1101 unlock_buffer(bhs[n]);
1102 mark_buffer_dirty_inode(bhs[n], dir);
1108 err = fat_sync_bhs(bhs, n);
1113 brelse(bhs[i]);
1118 err = fat_sync_bhs(bhs, n);
1123 brelse(bhs[i]);
1129 bforget(bhs[i]);
1137 struct buffer_head *bhs[MAX_BUF_PER_PAGE];
1149 bhs[0] = sb_getblk(sb, blknr);
1150 if (!bhs[0]) {
1157 de = (struct msdos_dir_entry *)bhs[0]->b_data;
1159 lock_buffer(bhs[0]);
1181 set_buffer_uptodate(bhs[0]);
1182 unlock_buffer(bhs[0]);
1183 mark_buffer_dirty_inode(bhs[0], dir);
1185 err = fat_zeroed_cluster(dir, blknr, 1, bhs, MAX_BUF_PER_PAGE);
1204 struct buffer_head *bhs[MAX_BUF_PER_PAGE];
1232 bhs[n] = sb_getblk(sb, blknr);
1233 if (!bhs[n]) {
1241 lock_buffer(bhs[n]);
1242 memcpy(bhs[n]->b_data, slots, copy);
1243 set_buffer_uptodate(bhs[n]);
1244 unlock_buffer(bhs[n]);
1245 mark_buffer_dirty_inode(bhs[n], dir);
1255 memset(bhs[n]->b_data + copy, 0, sb->s_blocksize - copy);
1257 get_bh(bhs[n]);
1258 *bh = bhs[n];
1263 err = fat_zeroed_cluster(dir, start_blknr, ++n, bhs, MAX_BUF_PER_PAGE);
1275 bforget(bhs[i]);
1286 struct buffer_head *bh, *prev, *bhs[3]; /* 32*slots (672bytes) */
1306 bhs[nr_bhs] = prev = bh;
1314 brelse(bhs[i]);
1346 memcpy(bhs[i]->b_data + offset, slots, copy);
1347 mark_buffer_dirty_inode(bhs[i], dir);
1353 err = fat_sync_bhs(bhs, long_bhs);
1357 memcpy(bhs[i]->b_data + offset, slots, copy);
1358 mark_buffer_dirty_inode(bhs[i], dir);
1360 err = sync_dirty_buffer(bhs[i]);
1363 brelse(bhs[i]);
1405 brelse(bhs[i]);