fs: readdir: Fix su hide patch for non-iterate filesystems
authorAlberto97 <albertop2197@gmail.com>
Tue, 23 May 2017 19:47:00 +0000 (21:47 +0200)
committerStricted <info@stricted.net>
Thu, 3 May 2018 16:47:07 +0000 (18:47 +0200)
commitd0b3db957eea741958562bf660484af180a65d50
tree92bbfd1a916cc9243ccde4b24c556cf332131100
parent05e290dfc996b8a139ee66730330afcba635c6ed
fs: readdir: Fix su hide patch for non-iterate filesystems

* 3.10 doesn't normally use iterate for filesystems,
  but it was backported in hopes of removing vfs_readdir()
* Because the romnt variable was only set for filesystems
  using iterate, the su hide patches were broken for many
  filesytems like ext4, which still use vfs_readdir()
  instead of iterate_dir() like their mainline counterparts
* Remove the iterate check around setting romnt to fix this

Change-Id: I26426683df0fd199a80f053294f352e31754bec5
fs/readdir.c