projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ALSA: hda - Fix lost sound due to stream_pm ops cleanup
[firefly-linux-kernel-4.4.55.git]
/
fs
/
stat.c
diff --git
a/fs/stat.c
b/fs/stat.c
index 19636af5e75cc16614f790519c6111599d906830..cccc1aab9a8b75231f056a18b0b9fc3ecaaf1561 100644
(file)
--- a/
fs/stat.c
+++ b/
fs/stat.c
@@
-51,7
+51,7
@@
EXPORT_SYMBOL(generic_fillattr);
*/
int vfs_getattr_nosec(struct path *path, struct kstat *stat)
{
*/
int vfs_getattr_nosec(struct path *path, struct kstat *stat)
{
- struct inode *inode =
path->dentry->d_inode
;
+ struct inode *inode =
d_backing_inode(path->dentry)
;
if (inode->i_op->getattr)
return inode->i_op->getattr(path->mnt, path->dentry, stat);
if (inode->i_op->getattr)
return inode->i_op->getattr(path->mnt, path->dentry, stat);
@@
-326,7
+326,7
@@
SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname,
retry:
error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty);
if (!error) {
retry:
error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty);
if (!error) {
- struct inode *inode =
path.dentry->d_inode
;
+ struct inode *inode =
d_backing_inode(path.dentry)
;
error = empty ? -ENOENT : -EINVAL;
if (inode->i_op->readlink) {
error = empty ? -ENOENT : -EINVAL;
if (inode->i_op->readlink) {