diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
commit | d635711daa98be86d4c7fd01499c34f566b54ccb (patch) | |
tree | aa5cc3760a27c3d57146498cb82fa549547de06c /fs/aufs/rdu.c | |
parent | c91265cd0efb83778f015b4d4b1129bd2cfd075e (diff) |
Linux-libre 4.6.2-gnu
Diffstat (limited to 'fs/aufs/rdu.c')
-rw-r--r-- | fs/aufs/rdu.c | 16 |
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: |