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 /drivers/mtd | |
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 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/build.c | 6 | ||||
-rw-r--r-- | drivers/mtd/ubi/kapi.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 9690cf9aaef5..b7f824d5ee88 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -1169,9 +1169,9 @@ static struct mtd_info * __init open_mtd_by_chdev(const char *mtd_dev) | |||
1169 | return ERR_PTR(err); | 1169 | return ERR_PTR(err); |
1170 | 1170 | ||
1171 | /* MTD device number is defined by the major / minor numbers */ | 1171 | /* MTD device number is defined by the major / minor numbers */ |
1172 | major = imajor(path.dentry->d_inode); | 1172 | major = imajor(d_backing_inode(path.dentry)); |
1173 | minor = iminor(path.dentry->d_inode); | 1173 | minor = iminor(d_backing_inode(path.dentry)); |
1174 | mode = path.dentry->d_inode->i_mode; | 1174 | mode = d_backing_inode(path.dentry)->i_mode; |
1175 | path_put(&path); | 1175 | path_put(&path); |
1176 | if (major != MTD_CHAR_MAJOR || !S_ISCHR(mode)) | 1176 | if (major != MTD_CHAR_MAJOR || !S_ISCHR(mode)) |
1177 | return ERR_PTR(-EINVAL); | 1177 | return ERR_PTR(-EINVAL); |
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c index 478e00cf2d9e..e844887732fb 100644 --- a/drivers/mtd/ubi/kapi.c +++ b/drivers/mtd/ubi/kapi.c | |||
@@ -314,7 +314,7 @@ struct ubi_volume_desc *ubi_open_volume_path(const char *pathname, int mode) | |||
314 | if (error) | 314 | if (error) |
315 | return ERR_PTR(error); | 315 | return ERR_PTR(error); |
316 | 316 | ||
317 | inode = path.dentry->d_inode; | 317 | inode = d_backing_inode(path.dentry); |
318 | mod = inode->i_mode; | 318 | mod = inode->i_mode; |
319 | ubi_num = ubi_major2num(imajor(inode)); | 319 | ubi_num = ubi_major2num(imajor(inode)); |
320 | vol_id = iminor(inode) - 1; | 320 | vol_id = iminor(inode) - 1; |