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:
parent
6f01433971
commit
9c5fb72cc8
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue