diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-03-30 17:15:30 +0200 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:20 +0200 |
| commit | 2ceb1bd829e41aad234b847a15ccc741287c5b2a (patch) | |
| tree | b7ae847fc8f99a75842a7b8b854cf4744901616d /fs | |
| parent | 033b9530c4ac015e7a4ca23527410d2c00c6bd94 (diff) | |
Revert "sdcardfs: Flag files as non-mappable"
This reverts commit b6a5e4ec2f6e2cabf5630fefcfc942992e3a028f.
Diffstat (limited to 'fs')
| -rwxr-xr-x | fs/sdcardfs/file.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/sdcardfs/file.c b/fs/sdcardfs/file.c index 2b3aa03ab..369051e6d 100755 --- a/fs/sdcardfs/file.c +++ b/fs/sdcardfs/file.c @@ -227,7 +227,6 @@ static int sdcardfs_open(struct inode *inode, struct file *file) /* save current_cred and override it */ OVERRIDE_CRED(sbi, saved_cred); - file->f_mode |= FMODE_NONMAPPABLE; file->private_data = kzalloc(sizeof(struct sdcardfs_file_info), GFP_KERNEL); if (!SDCARDFS_F(file)) { @@ -322,11 +321,6 @@ static int sdcardfs_fasync(int fd, struct file *file, int flag) return err; } -static struct file *sdcardfs_get_lower_file(struct file *f) -{ - return sdcardfs_lower_file(f); -} - const struct file_operations sdcardfs_main_fops = { .llseek = generic_file_llseek, .read = sdcardfs_read, @@ -341,7 +335,6 @@ const struct file_operations sdcardfs_main_fops = { .release = sdcardfs_file_release, .fsync = sdcardfs_fsync, .fasync = sdcardfs_fasync, - .get_lower_file = sdcardfs_get_lower_file, }; /* trimmed directory options */ @@ -358,5 +351,4 @@ const struct file_operations sdcardfs_dir_fops = { .flush = sdcardfs_flush, .fsync = sdcardfs_fsync, .fasync = sdcardfs_fasync, - .get_lower_file = sdcardfs_get_lower_file, }; |
