The patch titled use symbolic constants in generic lseek code has been added to the -mm tree. Its filename is use-symbolic-constants-in-generic-lseek-code.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: use symbolic constants in generic lseek code From: Chris Snook <csnook@xxxxxxxxxx> Convert magic numbers to SEEK_* values from fs.h Signed-off-by: Chris Snook <csnook@xxxxxxxxxx> Acked-by: David Howells <dhowells@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/read_write.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff -puN fs/read_write.c~use-symbolic-constants-in-generic-lseek-code fs/read_write.c --- a/fs/read_write.c~use-symbolic-constants-in-generic-lseek-code +++ a/fs/read_write.c @@ -37,10 +37,10 @@ loff_t generic_file_llseek(struct file * mutex_lock(&inode->i_mutex); switch (origin) { - case 2: + case SEEK_END: offset += inode->i_size; break; - case 1: + case SEEK_CUR: offset += file->f_pos; } retval = -EINVAL; @@ -63,10 +63,10 @@ loff_t remote_llseek(struct file *file, lock_kernel(); switch (origin) { - case 2: + case SEEK_END: offset += i_size_read(file->f_path.dentry->d_inode); break; - case 1: + case SEEK_CUR: offset += file->f_pos; } retval = -EINVAL; @@ -94,10 +94,10 @@ loff_t default_llseek(struct file *file, lock_kernel(); switch (origin) { - case 2: + case SEEK_END: offset += i_size_read(file->f_path.dentry->d_inode); break; - case 1: + case SEEK_CUR: offset += file->f_pos; } retval = -EINVAL; _ Patches currently in -mm which might be from csnook@xxxxxxxxxx are use-symbolic-constants-in-generic-lseek-code.patch use-use-seek_max-to-validate-user-lseek-arguments.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html