Skip to content
Snippets Groups Projects
Commit 6f661860 authored by Daniel Rosenberg's avatar Daniel Rosenberg
Browse files

ANDROID: sdcardfs: notify lower file of opens


fsnotify_open is not called within dentry_open,
so we need to call it ourselves.

Change-Id: Ia7f323b3d615e6ca5574e114e8a5d7973fb4c119
Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
Bug: 70706497
parent d7193540
No related merge requests found
......@@ -18,6 +18,7 @@
* General Public License.
*/
#include <linux/fsnotify.h>
#include "sdcardfs.h"
#ifdef CONFIG_SDCARD_FS_FADV_NOACTIVE
#include <linux/backing-dev.h>
......@@ -243,6 +244,7 @@ static int sdcardfs_open(struct inode *inode, struct file *file)
fput(lower_file); /* fput calls dput for lower_dentry */
}
} else {
fsnotify_open(lower_file);
sdcardfs_set_lower_file(file, lower_file);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment