GIT: unionfs2-2.6.27.y: fs/unionfs/: Use SEEK_{SET, CUR} instead of hardcoded values
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:15:53 EDT 2010
commit 738bed3108046c585e31875700f8696ac6a4bfcf
Author: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>
Date: Sun Feb 25 17:32:46 2007 -0500
fs/unionfs/: Use SEEK_{SET,CUR} instead of hardcoded values
Signed-off-by: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>
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;
More information about the unionfs-cvs
mailing list