Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54748
b: refs/heads/master
c: 866b04f
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Linus Torvalds committed May 8, 2007
1 parent afb0393 commit af7ad59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: 63bd23591e6c3891d34e4c6dba7c6aa41b05caad
refs/heads/master: 866b04fccbf125cd39f2bdbcfeaa611d39a061a8
14 changes: 12 additions & 2 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,12 @@ static struct inode * find_inode_fast(struct super_block * sb, struct hlist_head
*/
struct inode *new_inode(struct super_block *sb)
{
static unsigned long last_ino;
/*
* On a 32bit, non LFS stat() call, glibc will generate an EOVERFLOW
* error if st_ino won't fit in target struct field. Use 32bit counter
* here to attempt to avoid that.
*/
static unsigned int last_ino;
struct inode * inode;

spin_lock_prefetch(&inode_lock);
Expand Down Expand Up @@ -683,7 +688,12 @@ static unsigned long hash(struct super_block *sb, unsigned long hashval)
*/
ino_t iunique(struct super_block *sb, ino_t max_reserved)
{
static ino_t counter;
/*
* On a 32bit, non LFS stat() call, glibc will generate an EOVERFLOW
* error if st_ino won't fit in target struct field. Use 32bit counter
* here to attempt to avoid that.
*/
static unsigned int counter;
struct inode *inode;
struct hlist_head *head;
ino_t res;
Expand Down

0 comments on commit af7ad59

Please sign in to comment.