aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-01-29 09:10:26 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:59 -0400
commitc2a8b6e11009398ca9363d8ba8d4e7e40fb897fd (patch)
tree9f4ae9c8b7f407915163ea9aabb0f73dc0045960 /fs
parentbea495e5b4d9746f26cf5b4100d24c77c3dcbd84 (diff)
downloadkernel_samsung_aries-c2a8b6e11009398ca9363d8ba8d4e7e40fb897fd.zip
kernel_samsung_aries-c2a8b6e11009398ca9363d8ba8d4e7e40fb897fd.tar.gz
kernel_samsung_aries-c2a8b6e11009398ca9363d8ba8d4e7e40fb897fd.tar.bz2
Btrfs: Force f_pos to the max when a readdir hits the end of the directory.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 16d3aef..026bc9c 100644
--- 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: