diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 18:48:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 20:22:07 -0400 |
commit | 9ec3a646fe09970f801ab15e0f1694060b9f19af (patch) | |
tree | 697058ca7e1671eda180a3ccc62445686fbc1a31 /fs/f2fs | |
parent | c8b3fd0ce313443731e8fd6d5a541085eb465f99 (diff) | |
parent | 3cab989afd8d8d1bc3d99fef0e7ed87c31e7b647 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull fourth vfs update from Al Viro:
"d_inode() annotations from David Howells (sat in for-next since before
the beginning of merge window) + four assorted fixes"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
RCU pathwalk breakage when running into a symlink overmounting something
fix I_DIO_WAKEUP definition
direct-io: only inc/dec inode->i_dio_count for file systems
fs/9p: fix readdir()
VFS: assorted d_backing_inode() annotations
VFS: fs/inode.c helpers: d_inode() annotations
VFS: fs/cachefiles: d_backing_inode() annotations
VFS: fs library helpers: d_inode() annotations
VFS: assorted weird filesystems: d_inode() annotations
VFS: normal filesystems (and lustre): d_inode() annotations
VFS: security/: d_inode() annotations
VFS: security/: d_backing_inode() annotations
VFS: net/: d_inode() annotations
VFS: net/unix: d_backing_inode() annotations
VFS: kernel/: d_inode() annotations
VFS: audit: d_backing_inode() annotations
VFS: Fix up some ->d_inode accesses in the chelsio driver
VFS: Cachefiles should perform fs modifications on the top layer only
VFS: AF_UNIX sockets should call mknod on the top layer only
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 | ||||
-rw-r--r-- | fs/f2fs/file.c | 4 | ||||
-rw-r--r-- | fs/f2fs/namei.c | 18 | ||||
-rw-r--r-- | fs/f2fs/xattr.c | 10 |
4 files changed, 17 insertions, 17 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index c06a25e5cec3..d8921cf2ba9a 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -1482,7 +1482,7 @@ bool f2fs_empty_dir(struct inode *); | |||
1482 | 1482 | ||
1483 | static inline int f2fs_add_link(struct dentry *dentry, struct inode *inode) | 1483 | static inline int f2fs_add_link(struct dentry *dentry, struct inode *inode) |
1484 | { | 1484 | { |
1485 | return __f2fs_add_link(dentry->d_parent->d_inode, &dentry->d_name, | 1485 | return __f2fs_add_link(d_inode(dentry->d_parent), &dentry->d_name, |
1486 | inode, inode->i_ino, inode->i_mode); | 1486 | inode, inode->i_ino, inode->i_mode); |
1487 | } | 1487 | } |
1488 | 1488 | ||
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index a6f3f6186588..2b52e48d7482 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -574,7 +574,7 @@ void f2fs_truncate(struct inode *inode) | |||
574 | int f2fs_getattr(struct vfsmount *mnt, | 574 | int f2fs_getattr(struct vfsmount *mnt, |
575 | struct dentry *dentry, struct kstat *stat) | 575 | struct dentry *dentry, struct kstat *stat) |
576 | { | 576 | { |
577 | struct inode *inode = dentry->d_inode; | 577 | struct inode *inode = d_inode(dentry); |
578 | generic_fillattr(inode, stat); | 578 | generic_fillattr(inode, stat); |
579 | stat->blocks <<= 3; | 579 | stat->blocks <<= 3; |
580 | return 0; | 580 | return 0; |
@@ -613,7 +613,7 @@ static void __setattr_copy(struct inode *inode, const struct iattr *attr) | |||
613 | 613 | ||
614 | int f2fs_setattr(struct dentry *dentry, struct iattr *attr) | 614 | int f2fs_setattr(struct dentry *dentry, struct iattr *attr) |
615 | { | 615 | { |
616 | struct inode *inode = dentry->d_inode; | 616 | struct inode *inode = d_inode(dentry); |
617 | struct f2fs_inode_info *fi = F2FS_I(inode); | 617 | struct f2fs_inode_info *fi = F2FS_I(inode); |
618 | int err; | 618 | int err; |
619 | 619 | ||
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 407dde3d7a92..7e3794edae42 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c | |||
@@ -151,7 +151,7 @@ out: | |||
151 | static int f2fs_link(struct dentry *old_dentry, struct inode *dir, | 151 | static int f2fs_link(struct dentry *old_dentry, struct inode *dir, |
152 | struct dentry *dentry) | 152 | struct dentry *dentry) |
153 | { | 153 | { |
154 | struct inode *inode = old_dentry->d_inode; | 154 | struct inode *inode = d_inode(old_dentry); |
155 | struct f2fs_sb_info *sbi = F2FS_I_SB(dir); | 155 | struct f2fs_sb_info *sbi = F2FS_I_SB(dir); |
156 | int err; | 156 | int err; |
157 | 157 | ||
@@ -182,10 +182,10 @@ out: | |||
182 | struct dentry *f2fs_get_parent(struct dentry *child) | 182 | struct dentry *f2fs_get_parent(struct dentry *child) |
183 | { | 183 | { |
184 | struct qstr dotdot = QSTR_INIT("..", 2); | 184 | struct qstr dotdot = QSTR_INIT("..", 2); |
185 | unsigned long ino = f2fs_inode_by_name(child->d_inode, &dotdot); | 185 | unsigned long ino = f2fs_inode_by_name(d_inode(child), &dotdot); |
186 | if (!ino) | 186 | if (!ino) |
187 | return ERR_PTR(-ENOENT); | 187 | return ERR_PTR(-ENOENT); |
188 | return d_obtain_alias(f2fs_iget(child->d_inode->i_sb, ino)); | 188 | return d_obtain_alias(f2fs_iget(d_inode(child)->i_sb, ino)); |
189 | } | 189 | } |
190 | 190 | ||
191 | static int __recover_dot_dentries(struct inode *dir, nid_t pino) | 191 | static int __recover_dot_dentries(struct inode *dir, nid_t pino) |
@@ -263,7 +263,7 @@ static struct dentry *f2fs_lookup(struct inode *dir, struct dentry *dentry, | |||
263 | static int f2fs_unlink(struct inode *dir, struct dentry *dentry) | 263 | static int f2fs_unlink(struct inode *dir, struct dentry *dentry) |
264 | { | 264 | { |
265 | struct f2fs_sb_info *sbi = F2FS_I_SB(dir); | 265 | struct f2fs_sb_info *sbi = F2FS_I_SB(dir); |
266 | struct inode *inode = dentry->d_inode; | 266 | struct inode *inode = d_inode(dentry); |
267 | struct f2fs_dir_entry *de; | 267 | struct f2fs_dir_entry *de; |
268 | struct page *page; | 268 | struct page *page; |
269 | int err = -ENOENT; | 269 | int err = -ENOENT; |
@@ -403,7 +403,7 @@ out_fail: | |||
403 | 403 | ||
404 | static int f2fs_rmdir(struct inode *dir, struct dentry *dentry) | 404 | static int f2fs_rmdir(struct inode *dir, struct dentry *dentry) |
405 | { | 405 | { |
406 | struct inode *inode = dentry->d_inode; | 406 | struct inode *inode = d_inode(dentry); |
407 | if (f2fs_empty_dir(inode)) | 407 | if (f2fs_empty_dir(inode)) |
408 | return f2fs_unlink(dir, dentry); | 408 | return f2fs_unlink(dir, dentry); |
409 | return -ENOTEMPTY; | 409 | return -ENOTEMPTY; |
@@ -451,8 +451,8 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
451 | struct inode *new_dir, struct dentry *new_dentry) | 451 | struct inode *new_dir, struct dentry *new_dentry) |
452 | { | 452 | { |
453 | struct f2fs_sb_info *sbi = F2FS_I_SB(old_dir); | 453 | struct f2fs_sb_info *sbi = F2FS_I_SB(old_dir); |
454 | struct inode *old_inode = old_dentry->d_inode; | 454 | struct inode *old_inode = d_inode(old_dentry); |
455 | struct inode *new_inode = new_dentry->d_inode; | 455 | struct inode *new_inode = d_inode(new_dentry); |
456 | struct page *old_dir_page; | 456 | struct page *old_dir_page; |
457 | struct page *old_page, *new_page; | 457 | struct page *old_page, *new_page; |
458 | struct f2fs_dir_entry *old_dir_entry = NULL; | 458 | struct f2fs_dir_entry *old_dir_entry = NULL; |
@@ -578,8 +578,8 @@ static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
578 | struct inode *new_dir, struct dentry *new_dentry) | 578 | struct inode *new_dir, struct dentry *new_dentry) |
579 | { | 579 | { |
580 | struct f2fs_sb_info *sbi = F2FS_I_SB(old_dir); | 580 | struct f2fs_sb_info *sbi = F2FS_I_SB(old_dir); |
581 | struct inode *old_inode = old_dentry->d_inode; | 581 | struct inode *old_inode = d_inode(old_dentry); |
582 | struct inode *new_inode = new_dentry->d_inode; | 582 | struct inode *new_inode = d_inode(new_dentry); |
583 | struct page *old_dir_page, *new_dir_page; | 583 | struct page *old_dir_page, *new_dir_page; |
584 | struct page *old_page, *new_page; | 584 | struct page *old_page, *new_page; |
585 | struct f2fs_dir_entry *old_dir_entry = NULL, *new_dir_entry = NULL; | 585 | struct f2fs_dir_entry *old_dir_entry = NULL, *new_dir_entry = NULL; |
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index b0fd2f2d0716..9757f65a05bc 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c | |||
@@ -83,7 +83,7 @@ static int f2fs_xattr_generic_get(struct dentry *dentry, const char *name, | |||
83 | } | 83 | } |
84 | if (strcmp(name, "") == 0) | 84 | if (strcmp(name, "") == 0) |
85 | return -EINVAL; | 85 | return -EINVAL; |
86 | return f2fs_getxattr(dentry->d_inode, type, name, buffer, size, NULL); | 86 | return f2fs_getxattr(d_inode(dentry), type, name, buffer, size, NULL); |
87 | } | 87 | } |
88 | 88 | ||
89 | static int f2fs_xattr_generic_set(struct dentry *dentry, const char *name, | 89 | static int f2fs_xattr_generic_set(struct dentry *dentry, const char *name, |
@@ -108,7 +108,7 @@ static int f2fs_xattr_generic_set(struct dentry *dentry, const char *name, | |||
108 | if (strcmp(name, "") == 0) | 108 | if (strcmp(name, "") == 0) |
109 | return -EINVAL; | 109 | return -EINVAL; |
110 | 110 | ||
111 | return f2fs_setxattr(dentry->d_inode, type, name, | 111 | return f2fs_setxattr(d_inode(dentry), type, name, |
112 | value, size, NULL, flags); | 112 | value, size, NULL, flags); |
113 | } | 113 | } |
114 | 114 | ||
@@ -130,7 +130,7 @@ static size_t f2fs_xattr_advise_list(struct dentry *dentry, char *list, | |||
130 | static int f2fs_xattr_advise_get(struct dentry *dentry, const char *name, | 130 | static int f2fs_xattr_advise_get(struct dentry *dentry, const char *name, |
131 | void *buffer, size_t size, int type) | 131 | void *buffer, size_t size, int type) |
132 | { | 132 | { |
133 | struct inode *inode = dentry->d_inode; | 133 | struct inode *inode = d_inode(dentry); |
134 | 134 | ||
135 | if (strcmp(name, "") != 0) | 135 | if (strcmp(name, "") != 0) |
136 | return -EINVAL; | 136 | return -EINVAL; |
@@ -143,7 +143,7 @@ static int f2fs_xattr_advise_get(struct dentry *dentry, const char *name, | |||
143 | static int f2fs_xattr_advise_set(struct dentry *dentry, const char *name, | 143 | static int f2fs_xattr_advise_set(struct dentry *dentry, const char *name, |
144 | const void *value, size_t size, int flags, int type) | 144 | const void *value, size_t size, int flags, int type) |
145 | { | 145 | { |
146 | struct inode *inode = dentry->d_inode; | 146 | struct inode *inode = d_inode(dentry); |
147 | 147 | ||
148 | if (strcmp(name, "") != 0) | 148 | if (strcmp(name, "") != 0) |
149 | return -EINVAL; | 149 | return -EINVAL; |
@@ -444,7 +444,7 @@ cleanup: | |||
444 | 444 | ||
445 | ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) | 445 | ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) |
446 | { | 446 | { |
447 | struct inode *inode = dentry->d_inode; | 447 | struct inode *inode = d_inode(dentry); |
448 | struct f2fs_xattr_entry *entry; | 448 | struct f2fs_xattr_entry *entry; |
449 | void *base_addr; | 449 | void *base_addr; |
450 | int error = 0; | 450 | int error = 0; |