projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea495e
)
Btrfs: Force f_pos to the max when a readdir hits the end of the directory.
author
Chris Mason
<chris.mason@oracle.com>
Tue, 29 Jan 2008 14:10:26 +0000
(09:10 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:59 +0000
(11:03 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 16d3aef45d189a561fafa15700181b1bde39ae93..026bc9c4c90d37a0b6a766cf48e56102c432e8ea 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-1430,7
+1430,7
@@
read_dir_items:
di = (struct btrfs_dir_item *)((char *)di + di_len);
}
}
- filp->f_pos
++
;
+ filp->f_pos
= INT_LIMIT(typeof(filp->f_pos))
;
nopos:
ret = 0;
err: