Messages in this thread Patch in this message | | | Date | Wed, 08 Aug 2007 23:35:36 +0900 | From | Tejun Heo <> | Subject | Re: [PATCH 0/25] Sysfs cleanups & tagged directory support |
| |
Does the attached patch happen to fix the problem?
-- tejun --- fs/sysfs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: work/fs/sysfs/dir.c =================================================================== --- work.orig/fs/sysfs/dir.c +++ work/fs/sysfs/dir.c @@ -1010,7 +1010,7 @@ static int sysfs_readdir(struct file * f if (filldir(dirent, "..", 2, filp->f_pos, ino, DT_DIR) == 0) filp->f_pos++; } - if ((filp->f_pos > 1) && (filp->f_pos < UINT_MAX)) { + if ((filp->f_pos > 1) && (filp->f_pos < INT_MAX)) { mutex_lock(&sysfs_mutex); /* Skip the dentries we have already reported */ @@ -1031,7 +1031,7 @@ static int sysfs_readdir(struct file * f break; } if (!pos) - filp->f_pos = UINT_MAX; + filp->f_pos = INT_MAX; mutex_unlock(&sysfs_mutex); } return 0; | |