diff options
Diffstat (limited to 'fs/ufs/balloc.c')
-rw-r--r-- | fs/ufs/balloc.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/ufs/balloc.c b/fs/ufs/balloc.c index 3ada9dcf55b8..cc0c8f15d8fd 100644 --- a/fs/ufs/balloc.c +++ b/fs/ufs/balloc.c | |||
@@ -223,18 +223,6 @@ failed: | |||
223 | } | 223 | } |
224 | 224 | ||
225 | 225 | ||
226 | |||
227 | #define NULLIFY_FRAGMENTS \ | ||
228 | for (i = oldcount; i < newcount; i++) { \ | ||
229 | bh = sb_getblk(sb, result + i); \ | ||
230 | memset (bh->b_data, 0, sb->s_blocksize); \ | ||
231 | set_buffer_uptodate(bh); \ | ||
232 | mark_buffer_dirty (bh); \ | ||
233 | if (IS_SYNC(inode)) \ | ||
234 | sync_dirty_buffer(bh); \ | ||
235 | brelse (bh); \ | ||
236 | } | ||
237 | |||
238 | unsigned ufs_new_fragments (struct inode * inode, __fs32 * p, unsigned fragment, | 226 | unsigned ufs_new_fragments (struct inode * inode, __fs32 * p, unsigned fragment, |
239 | unsigned goal, unsigned count, int * err ) | 227 | unsigned goal, unsigned count, int * err ) |
240 | { | 228 | { |
@@ -312,7 +300,6 @@ unsigned ufs_new_fragments (struct inode * inode, __fs32 * p, unsigned fragment, | |||
312 | *err = 0; | 300 | *err = 0; |
313 | inode->i_blocks += count << uspi->s_nspfshift; | 301 | inode->i_blocks += count << uspi->s_nspfshift; |
314 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); | 302 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); |
315 | NULLIFY_FRAGMENTS | ||
316 | } | 303 | } |
317 | unlock_super(sb); | 304 | unlock_super(sb); |
318 | UFSD(("EXIT, result %u\n", result)) | 305 | UFSD(("EXIT, result %u\n", result)) |
@@ -327,7 +314,6 @@ unsigned ufs_new_fragments (struct inode * inode, __fs32 * p, unsigned fragment, | |||
327 | *err = 0; | 314 | *err = 0; |
328 | inode->i_blocks += count << uspi->s_nspfshift; | 315 | inode->i_blocks += count << uspi->s_nspfshift; |
329 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); | 316 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); |
330 | NULLIFY_FRAGMENTS | ||
331 | unlock_super(sb); | 317 | unlock_super(sb); |
332 | UFSD(("EXIT, result %u\n", result)) | 318 | UFSD(("EXIT, result %u\n", result)) |
333 | return result; | 319 | return result; |
@@ -379,7 +365,6 @@ unsigned ufs_new_fragments (struct inode * inode, __fs32 * p, unsigned fragment, | |||
379 | *err = 0; | 365 | *err = 0; |
380 | inode->i_blocks += count << uspi->s_nspfshift; | 366 | inode->i_blocks += count << uspi->s_nspfshift; |
381 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); | 367 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); |
382 | NULLIFY_FRAGMENTS | ||
383 | unlock_super(sb); | 368 | unlock_super(sb); |
384 | if (newcount < request) | 369 | if (newcount < request) |
385 | ufs_free_fragments (inode, result + newcount, request - newcount); | 370 | ufs_free_fragments (inode, result + newcount, request - newcount); |