diff options
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/balloc.c | 2 | ||||
-rw-r--r-- | fs/ext2/super.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index 8f44cef1b3ef..a8cbe1bc6ad4 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c | |||
@@ -421,7 +421,7 @@ static inline int rsv_is_empty(struct ext2_reserve_window *rsv) | |||
421 | void ext2_init_block_alloc_info(struct inode *inode) | 421 | void ext2_init_block_alloc_info(struct inode *inode) |
422 | { | 422 | { |
423 | struct ext2_inode_info *ei = EXT2_I(inode); | 423 | struct ext2_inode_info *ei = EXT2_I(inode); |
424 | struct ext2_block_alloc_info *block_i = ei->i_block_alloc_info; | 424 | struct ext2_block_alloc_info *block_i; |
425 | struct super_block *sb = inode->i_sb; | 425 | struct super_block *sb = inode->i_sb; |
426 | 426 | ||
427 | block_i = kmalloc(sizeof(*block_i), GFP_NOFS); | 427 | block_i = kmalloc(sizeof(*block_i), GFP_NOFS); |
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 1dd62ed35b85..bd8ac164a3bf 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -327,10 +327,10 @@ static struct inode *ext2_nfs_get_inode(struct super_block *sb, | |||
327 | if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) | 327 | if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) |
328 | return ERR_PTR(-ESTALE); | 328 | return ERR_PTR(-ESTALE); |
329 | 329 | ||
330 | /* iget isn't really right if the inode is currently unallocated!! | 330 | /* |
331 | * ext2_read_inode currently does appropriate checks, but | 331 | * ext2_iget isn't quite right if the inode is currently unallocated! |
332 | * it might be "neater" to call ext2_get_inode first and check | 332 | * However ext2_iget currently does appropriate checks to handle stale |
333 | * if the inode is valid..... | 333 | * inodes so everything is OK. |
334 | */ | 334 | */ |
335 | inode = ext2_iget(sb, ino); | 335 | inode = ext2_iget(sb, ino); |
336 | if (IS_ERR(inode)) | 336 | if (IS_ERR(inode)) |