Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-620 llite: add delete_from_page_cache and remove_from_page_cache check
[fs/lustre-release.git]
/
lustre
/
llite
/
remote_perm.c
diff --git
a/lustre/llite/remote_perm.c
b/lustre/llite/remote_perm.c
index
9d26e87
..
f90de1f
100644
(file)
--- a/
lustre/llite/remote_perm.c
+++ b/
lustre/llite/remote_perm.c
@@
-26,7
+26,7
@@
* GPL HEADER END
*/
/*
* GPL HEADER END
*/
/*
- * Copyright
2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright
(c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
* Use is subject to license terms.
*/
/*
@@
-45,7
+45,6
@@
#include <linux/module.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/types.h>
-#include <linux/random.h>
#include <linux/version.h>
#include <lustre_lite.h>
#include <linux/version.h>
#include <lustre_lite.h>
@@
-131,17
+130,17
@@
static int do_check_remote_perm(struct ll_inode_info *lli, int mask)
if (!lli->lli_remote_perms)
RETURN(-ENOENT);
if (!lli->lli_remote_perms)
RETURN(-ENOENT);
- head = lli->lli_remote_perms + remote_perm_hashfunc(c
urrent->uid
);
+ head = lli->lli_remote_perms + remote_perm_hashfunc(c
fs_curproc_uid()
);
cfs_spin_lock(&lli->lli_lock);
cfs_hlist_for_each_entry(lrp, node, head, lrp_list) {
cfs_spin_lock(&lli->lli_lock);
cfs_hlist_for_each_entry(lrp, node, head, lrp_list) {
- if (lrp->lrp_uid != c
urrent->uid
)
+ if (lrp->lrp_uid != c
fs_curproc_uid()
)
continue;
continue;
- if (lrp->lrp_gid != c
urrent->gid
)
+ if (lrp->lrp_gid != c
fs_curproc_gid()
)
continue;
continue;
- if (lrp->lrp_fsuid != c
urrent->fsuid
)
+ if (lrp->lrp_fsuid != c
fs_curproc_fsuid()
)
continue;
continue;
- if (lrp->lrp_fsgid != c
urrent->fsgid
)
+ if (lrp->lrp_fsgid != c
fs_curproc_fsgid()
)
continue;
found = 1;
break;
continue;
found = 1;
break;