diff options
-rw-r--r-- | fs/minix/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/minix/dir.c b/fs/minix/dir.c index 08c442902fcd..dfaf6fa9b7b5 100644 --- a/fs/minix/dir.c +++ b/fs/minix/dir.c | |||
@@ -93,7 +93,7 @@ static int minix_readdir(struct file *file, struct dir_context *ctx) | |||
93 | unsigned offset; | 93 | unsigned offset; |
94 | unsigned long n; | 94 | unsigned long n; |
95 | 95 | ||
96 | ctx->pos = pos = (pos + chunk_size-1) & ~(chunk_size-1); | 96 | ctx->pos = pos = ALIGN(pos, chunk_size); |
97 | if (pos >= inode->i_size) | 97 | if (pos >= inode->i_size) |
98 | return 0; | 98 | return 0; |
99 | 99 | ||