Commit 6f014339 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: lustre: remove ll_generic_file_llseek_size()

It was a wrapper around generic_file_llseek_size(), totally useless.

Cc: Peng Tao <tao.peng@emc.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd4c3a48
...@@ -95,10 +95,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt, ...@@ -95,10 +95,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
#define ll_vfs_symlink(dir, dentry, mnt, path, mode) \ #define ll_vfs_symlink(dir, dentry, mnt, path, mode) \
vfs_symlink(dir, dentry, path) vfs_symlink(dir, dentry, path)
#define ll_generic_file_llseek_size(file, offset, origin, maxbytes, eof) \
generic_file_llseek_size(file, offset, origin, maxbytes, eof);
/* inode_dio_wait(i) use as-is for write lock */ /* inode_dio_wait(i) use as-is for write lock */
# define inode_dio_write_done(i) do {} while (0) /* for write unlock */ # define inode_dio_write_done(i) do {} while (0) /* for write unlock */
# define inode_dio_read(i) atomic_inc(&(i)->i_dio_count) # define inode_dio_read(i) atomic_inc(&(i)->i_dio_count)
......
...@@ -2147,7 +2147,7 @@ loff_t ll_file_seek(struct file *file, loff_t offset, int origin) ...@@ -2147,7 +2147,7 @@ loff_t ll_file_seek(struct file *file, loff_t offset, int origin)
eof = i_size_read(inode); eof = i_size_read(inode);
} }
retval = ll_generic_file_llseek_size(file, offset, origin, retval = generic_file_llseek_size(file, offset, origin,
ll_file_maxbytes(inode), eof); ll_file_maxbytes(inode), eof);
RETURN(retval); RETURN(retval);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment