summaryrefslogtreecommitdiff
path: root/fs/aufs/rdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/aufs/rdu.c')
-rw-r--r--fs/aufs/rdu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/aufs/rdu.c b/fs/aufs/rdu.c
index ec0844673..7180f18e6 100644
--- a/fs/aufs/rdu.c
+++ b/fs/aufs/rdu.c
@@ -109,7 +109,7 @@ out:
static int au_rdu(struct file *file, struct aufs_rdu *rdu)
{
int err;
- aufs_bindex_t bend;
+ aufs_bindex_t bbot;
struct au_rdu_arg arg = {
.ctx = {
.actor = au_rdu_fill
@@ -176,12 +176,12 @@ static int au_rdu(struct file *file, struct aufs_rdu *rdu)
if (!rdu->blk)
rdu->blk = au_dir_size(file, /*dentry*/NULL);
}
- bend = au_fbstart(file);
- if (cookie->bindex < bend)
- cookie->bindex = bend;
- bend = au_fbend_dir(file);
- /* AuDbg("b%d, b%d\n", cookie->bindex, bend); */
- for (; !err && cookie->bindex <= bend;
+ bbot = au_fbtop(file);
+ if (cookie->bindex < bbot)
+ cookie->bindex = bbot;
+ bbot = au_fbbot_dir(file);
+ /* AuDbg("b%d, b%d\n", cookie->bindex, bbot); */
+ for (; !err && cookie->bindex <= bbot;
cookie->bindex++, cookie->h_pos = 0) {
h_file = au_hf_dir(file, cookie->bindex);
if (!h_file)
@@ -202,7 +202,7 @@ static int au_rdu(struct file *file, struct aufs_rdu *rdu)
}
ii_read_lock_child(inode);
- fsstack_copy_attr_atime(inode, au_h_iptr(inode, au_ibstart(inode)));
+ fsstack_copy_attr_atime(inode, au_h_iptr(inode, au_ibtop(inode)));
ii_read_unlock(inode);
out_unlock: