Skip to content

Commit b4a45f5

Browse files
committed
Merge branch 'vfs-scale-working' of git://git.kernel.org/pub/scm/linux/kernel/git/npiggin/linux-npiggin
* 'vfs-scale-working' of git://git.kernel.org/pub/scm/linux/kernel/git/npiggin/linux-npiggin: (57 commits) fs: scale mntget/mntput fs: rename vfsmount counter helpers fs: implement faster dentry memcmp fs: prefetch inode data in dcache lookup fs: improve scalability of pseudo filesystems fs: dcache per-inode inode alias locking fs: dcache per-bucket dcache hash locking bit_spinlock: add required includes kernel: add bl_list xfs: provide simple rcu-walk ACL implementation btrfs: provide simple rcu-walk ACL implementation ext2,3,4: provide simple rcu-walk ACL implementation fs: provide simple rcu-walk generic_check_acl implementation fs: provide rcu-walk aware permission i_ops fs: rcu-walk aware d_revalidate method fs: cache optimise dentry and inode for rcu-walk fs: dcache reduce branches in lookup path fs: dcache remove d_mounted fs: fs_struct use seqlock fs: rcu-walk for path lookup ...
2 parents 01539ba + b3e19d9 commit b4a45f5

212 files changed

Lines changed: 4774 additions & 2014 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/filesystems/Locking‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,25 @@ be able to use diff(1).
99

1010
--------------------------- dentry_operations --------------------------
1111
prototypes:
12-
int (*d_revalidate)(struct dentry *, int);
13-
int (*d_hash) (struct dentry *, struct qstr *);
14-
int (*d_compare) (struct dentry *, struct qstr *, struct qstr *);
12+
int (*d_revalidate)(struct dentry *, struct nameidata *);
13+
int (*d_hash)(const struct dentry *, const struct inode *,
14+
struct qstr *);
15+
int (*d_compare)(const struct dentry *, const struct inode *,
16+
const struct dentry *, const struct inode *,
17+
unsigned int, const char *, const struct qstr *);
1518
int (*d_delete)(struct dentry *);
1619
void (*d_release)(struct dentry *);
1720
void (*d_iput)(struct dentry *, struct inode *);
1821
char *(*d_dname)((struct dentry *dentry, char *buffer, int buflen);
1922

2023
locking rules:
21-
dcache_lock rename_lock ->d_lock may block
22-
d_revalidate: no no no yes
23-
d_hash no no no yes
24-
d_compare: no yes no no
25-
d_delete: yes no yes no
26-
d_release: no no no yes
27-
d_iput: no no no yes
24+
rename_lock ->d_lock may block rcu-walk
25+
d_revalidate: no no yes (ref-walk) maybe
26+
d_hash no no no maybe
27+
d_compare: yes no no maybe
28+
d_delete: no yes no no
29+
d_release: no no yes no
30+
d_iput: no no yes no
2831
d_dname: no no no no
2932

3033
--------------------------- inode_operations ---------------------------
@@ -44,8 +47,8 @@ ata *);
4447
void * (*follow_link) (struct dentry *, struct nameidata *);
4548
void (*put_link) (struct dentry *, struct nameidata *, void *);
4649
void (*truncate) (struct inode *);
47-
int (*permission) (struct inode *, int, struct nameidata *);
48-
int (*check_acl)(struct inode *, int);
50+
int (*permission) (struct inode *, int, unsigned int);
51+
int (*check_acl)(struct inode *, int, unsigned int);
4952
int (*setattr) (struct dentry *, struct iattr *);
5053
int (*getattr) (struct vfsmount *, struct dentry *, struct kstat *);
5154
int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
@@ -73,7 +76,7 @@ follow_link: no
7376
put_link: no
7477
truncate: yes (see below)
7578
setattr: yes
76-
permission: no
79+
permission: no (may not block if called in rcu-walk mode)
7780
check_acl: no
7881
getattr: no
7982
setxattr: yes

‎Documentation/filesystems/dentry-locking.txt‎

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)