lkml.org 
[lkml]   [2007]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 07/13] fs/unionfs/: Use SEEK_{SET,CUR} instead of hardcoded values
Date
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
---
fs/unionfs/dirfops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index 2b77fa9..8f568c7 100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -135,15 +135,15 @@ static int unionfs_readdir(struct file *file, void *dirent, filldir_t filldir)
buf.sb = inode->i_sb;

/* Read starting from where we last left off. */
- offset = vfs_llseek(hidden_file, uds->dirpos, 0);
+ offset = vfs_llseek(hidden_file, uds->dirpos, SEEK_SET);
if (offset < 0) {
err = offset;
goto out;
}
err = vfs_readdir(hidden_file, unionfs_filldir, &buf);
- /* Save the position for when we continue. */

- offset = vfs_llseek(hidden_file, 0, 1);
+ /* Save the position for when we continue. */
+ offset = vfs_llseek(hidden_file, 0, SEEK_CUR);
if (offset < 0) {
err = offset;
goto out;
--
1.5.0.2.260.g2eb065
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-05 03:03    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site