X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Flibfs.c;h=35fc6e74cd886954aab26d223c603573dfe26786;hb=965c8e59cfcf845ecde2265a1d1bfee5f011d302;hp=7cc37ca19cd81e4f844058ad11e5bba947ba86a1;hpb=12250d843e8489ee00b5b7726da855e51694e792;p=mirror_ubuntu-artful-kernel.git diff --git a/fs/libfs.c b/fs/libfs.c index 7cc37ca19cd8..35fc6e74cd88 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -81,11 +81,11 @@ int dcache_dir_close(struct inode *inode, struct file *file) return 0; } -loff_t dcache_dir_lseek(struct file *file, loff_t offset, int origin) +loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) { struct dentry *dentry = file->f_path.dentry; mutex_lock(&dentry->d_inode->i_mutex); - switch (origin) { + switch (whence) { case 1: offset += file->f_pos; case 0: