Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 750e1435 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ANDROID: vfs: d_canonical_path for stacked FS"

parents 99fe7e1d 596207b5
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -210,19 +210,12 @@ static inline void fsnotify_modify(struct file *file)
static inline void fsnotify_open(struct file *file)
{
	const struct path *path = &file->f_path;
	struct path lower_path;
	struct inode *inode = file_inode(file);
	__u32 mask = FS_OPEN;

	if (S_ISDIR(inode->i_mode))
		mask |= FS_ISDIR;

	if (path->dentry->d_op && path->dentry->d_op->d_canonical_path) {
		path->dentry->d_op->d_canonical_path(path, &lower_path);
		fsnotify_parent(&lower_path, NULL, mask);
		fsnotify(lower_path.dentry->d_inode, mask, &lower_path, FSNOTIFY_EVENT_PATH, NULL, 0);
		path_put(&lower_path);
	}
	fsnotify_parent(path, NULL, mask);
	fsnotify(inode, mask, path, FSNOTIFY_EVENT_PATH, NULL, 0);
}