Revert "ANDROID: sdcardfs: notify lower file of opens"
authorDaniel Rosenberg <drosen@google.com>
Wed, 24 Jan 2018 01:51:26 +0000 (17:51 -0800)
committerDaniel Rosenberg <drosen@google.com>
Sat, 3 Feb 2018 04:04:45 +0000 (20:04 -0800)
This reverts commit cb83f9ee4dbca51cef9ee710c2f8fdd96e7c996f.

Instead of calling notify within sdcardfs, which reverse the
order of notifications during an open with truncate, we'll
make fs_notify worry about it.

Change-Id: Ic634401c0f223500066300a4df8b1453a0b35b60
Bug: 70706497
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/file.c

index dd76ecf33cf3687baa199797c07b6301577a1079..5ac0b0bbb0ec1c10092e3b19bb272d24ad6bdd82 100644 (file)
@@ -18,7 +18,6 @@
  * General Public License.
  */
 
-#include <linux/fsnotify.h>
 #include "sdcardfs.h"
 #ifdef CONFIG_SDCARD_FS_FADV_NOACTIVE
 #include <linux/backing-dev.h>
@@ -260,7 +259,6 @@ 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);
        }