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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman 2013-08-02 16:01:26 +08:00
parent 6f01433971
commit 9c5fb72cc8
2 changed files with 2 additions and 4 deletions

View File

@ -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 ll_permission(inode,mask,nd) inode_permission(inode,mask)
# define ll_generic_permission(inode, mask, flags, check_acl) \
generic_permission(inode, mask)

View File

@ -1756,8 +1756,8 @@ static int ll_swap_layouts(struct file *file1, struct file *file2,
if (!S_ISREG(llss->inode2->i_mode))
GOTO(free, rc = -EINVAL);
if (ll_permission(llss->inode1, MAY_WRITE, NULL) ||
ll_permission(llss->inode2, MAY_WRITE, NULL))
if (inode_permission(llss->inode1, MAY_WRITE) ||
inode_permission(llss->inode2, MAY_WRITE))
GOTO(free, rc = -EPERM);
if (llss->inode2->i_sb != llss->inode1->i_sb)