[PATCH] JFS: Changes for larger page size
JFS code has always assumed a page size of 4K. This patch fixes the non-pagecache uses of pages to deal with larger pages. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
d2e83707ed
commit
dc5798d9a7
@@ -3181,7 +3181,7 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
|
||||
d = (struct ldtentry *) & p->slot[stbl[i]];
|
||||
|
||||
if (((long) jfs_dirent + d->namlen + 1) >
|
||||
(dirent_buf + PSIZE)) {
|
||||
(dirent_buf + PAGE_SIZE)) {
|
||||
/* DBCS codepages could overrun dirent_buf */
|
||||
index = i;
|
||||
overflow = 1;
|
||||
|
Reference in New Issue
Block a user