projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vfs: add fileattr ops
[linux-2.6-microblaze.git]
/
Documentation
/
filesystems
/
locking.rst
diff --git
a/Documentation/filesystems/locking.rst
b/Documentation/filesystems/locking.rst
index
b7dcc86
..
729ce49
100644
(file)
--- a/
Documentation/filesystems/locking.rst
+++ b/
Documentation/filesystems/locking.rst
@@
-80,13
+80,16
@@
prototypes::
struct file *, unsigned open_flag,
umode_t create_mode);
int (*tmpfile) (struct inode *, struct dentry *, umode_t);
struct file *, unsigned open_flag,
umode_t create_mode);
int (*tmpfile) (struct inode *, struct dentry *, umode_t);
+ int (*fileattr_set)(struct user_namespace *mnt_userns,
+ struct dentry *dentry, struct fileattr *fa);
+ int (*fileattr_get)(struct dentry *dentry, struct fileattr *fa);
locking rules:
all may block
locking rules:
all may block
-============
=============================================
+============
=
=============================================
ops i_rwsem(inode)
ops i_rwsem(inode)
-============
=============================================
+============
=
=============================================
lookup: shared
create: exclusive
link: exclusive (both)
lookup: shared
create: exclusive
link: exclusive (both)
@@
-107,7
+110,9
@@
fiemap: no
update_time: no
atomic_open: shared (exclusive if O_CREAT is set in open flags)
tmpfile: no
update_time: no
atomic_open: shared (exclusive if O_CREAT is set in open flags)
tmpfile: no
-============ =============================================
+fileattr_get: no or exclusive
+fileattr_set: exclusive
+============= =============================================
Additionally, ->rmdir(), ->unlink() and ->rename() have ->i_rwsem
Additionally, ->rmdir(), ->unlink() and ->rename() have ->i_rwsem