Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175297
b: refs/heads/master
c: 2314b07
h: refs/heads/master
i:
  175295: 9f4303b
v: v3
  • Loading branch information
Alexey Fisher authored and Jan Kara committed Dec 10, 2009
1 parent fbdc472 commit 173e0ab
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 81 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dee1d3b6270a7cf5cc65c493a2ab4ebaad1a1caf
refs/heads/master: 2314b07cb47ef7d7da5779977f8c3bf1b65748d2
2 changes: 1 addition & 1 deletion trunk/fs/ext2/ext2.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ struct dentry *ext2_get_parent(struct dentry *child);
/* super.c */
extern void ext2_error (struct super_block *, const char *, const char *, ...)
__attribute__ ((format (printf, 3, 4)));
extern void ext2_warning (struct super_block *, const char *, const char *, ...)
extern void ext2_msg(struct super_block *, const char *, const char *, ...)
__attribute__ ((format (printf, 3, 4)));
extern void ext2_update_dynamic_rev (struct super_block *sb);
extern void ext2_write_super (struct super_block *);
Expand Down
6 changes: 4 additions & 2 deletions trunk/fs/ext2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ static int ext2_block_to_path(struct inode *inode,
int final = 0;

if (i_block < 0) {
ext2_warning (inode->i_sb, "ext2_block_to_path", "block < 0");
ext2_msg(inode->i_sb, KERN_WARNING,
"warning: %s: block < 0", __func__);
} else if (i_block < direct_blocks) {
offsets[n++] = i_block;
final = direct_blocks;
Expand All @@ -157,7 +158,8 @@ static int ext2_block_to_path(struct inode *inode,
offsets[n++] = i_block & (ptrs - 1);
final = ptrs;
} else {
ext2_warning (inode->i_sb, "ext2_block_to_path", "block > big");
ext2_msg(inode->i_sb, KERN_WARNING,
"warning: %s: block is too big", __func__);
}
if (boundary)
*boundary = final - 1 - (i_block & (ptrs - 1));
Expand Down
Loading

0 comments on commit 173e0ab

Please sign in to comment.