Commit 9c5fb72c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: lustre: remove ll_permission()

It was a wrapper around inode_permission(), 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 6f014339
...@@ -87,8 +87,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt, ...@@ -87,8 +87,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
#define LTIME_S(time) (time.tv_sec) #define LTIME_S(time) (time.tv_sec)
#define ll_permission(inode,mask,nd) inode_permission(inode,mask)
# define ll_generic_permission(inode, mask, flags, check_acl) \ # define ll_generic_permission(inode, mask, flags, check_acl) \
generic_permission(inode, mask) generic_permission(inode, mask)
......
...@@ -1756,8 +1756,8 @@ static int ll_swap_layouts(struct file *file1, struct file *file2, ...@@ -1756,8 +1756,8 @@ static int ll_swap_layouts(struct file *file1, struct file *file2,
if (!S_ISREG(llss->inode2->i_mode)) if (!S_ISREG(llss->inode2->i_mode))
GOTO(free, rc = -EINVAL); GOTO(free, rc = -EINVAL);
if (ll_permission(llss->inode1, MAY_WRITE, NULL) || if (inode_permission(llss->inode1, MAY_WRITE) ||
ll_permission(llss->inode2, MAY_WRITE, NULL)) inode_permission(llss->inode2, MAY_WRITE))
GOTO(free, rc = -EPERM); GOTO(free, rc = -EPERM);
if (llss->inode2->i_sb != llss->inode1->i_sb) if (llss->inode2->i_sb != llss->inode1->i_sb)
......
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