projects
/
platform
/
kernel
/
linux-rpi.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
16d3aef
..
026bc9c
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: