mint0x33/fs
Jaegeuk Kim ce767d9a55 f2fs: updates on v4.16-rc1
Pull f2fs updates from Jaegeuk Kim:
 "In this round, we've followed up to support some generic features such
  as cgroup, block reservation, linking fscrypt_ops, delivering
  write_hints, and some ioctls. And, we could fix some corner cases in
  terms of power-cut recovery and subtle deadlocks.

  Enhancements:
   - bitmap operations to handle NAT blocks
   - readahead to improve readdir speed
   - switch to use fscrypt_*
   - apply write hints for direct IO
   - add reserve_root=%u,resuid=%u,resgid=%u to reserve blocks for root/uid/gid
   - modify b_avail and b_free to consider root reserved blocks
   - support cgroup writeback
   - support FIEMAP_FLAG_XATTR for fibmap
   - add F2FS_IOC_PRECACHE_EXTENTS to pre-cache extents
   - add F2FS_IOC_{GET/SET}_PIN_FILE to pin LBAs for data blocks
   - support inode creation time

  Bug fixs:
   - sysfile-based quota operations
   - memory footprint accounting
   - allow to write data on partial preallocation case
   - fix deadlock case on fallocate
   - fix to handle fill_super errors
   - fix missing inode updates of fsync'ed file
   - recover renamed file which was fsycn'ed before
   - drop inmemory pages in corner error case
   - keep last_disk_size correctly
   - recover missing i_inline flags during roll-forward

  Various clean-up patches were added as well"

Cherry-pick from origin/upstream-f2fs-stable-linux-4.14.y:

00f0eaaadf f2fs: support inode creation time
3e7444adf9 f2fs: rebuild sit page from sit info in mem
76688790c3 f2fs: stop issuing discard if fs is readonly
ae93dca264 f2fs: clean up duplicated assignment in init_discard_policy
0052bba131 f2fs: use GFP_F2FS_ZERO for cleanup
6271336cfa f2fs: allow to recover node blocks given updated checkpoint
e003a2d153 f2fs: recover some i_inline flags
3cafae53f3 f2fs: correct removexattr behavior for null valued extended attribute
78d7fa9ac2 f2fs: drop page cache after fs shutdown
150b61cee5 f2fs: stop gc/discard thread after fs shutdown
cf27ccc41e f2fs: hanlde error case in f2fs_ioc_shutdown
1526117cda f2fs: split need_inplace_update
cd576d7b7a f2fs: fix to update last_disk_size correctly
7a57bd3313 f2fs: kill F2FS_INLINE_XATTR_ADDRS for cleanup
95eb6a6ceb f2fs: clean up error path of fill_super
63c949c973 f2fs: avoid hungtask when GC encrypted block if io_bits is set
583d13d10c f2fs: allow quota to use reserved blocks
fbe371d3cd f2fs: fix to drop all inmem pages correctly
7e08ce4356 f2fs: speed up defragment on sparse file
0f914cab8c f2fs: support F2FS_IOC_PRECACHE_EXTENTS
ed1311e585 f2fs: add an ioctl to disable GC for specific file
b08974ab5e f2fs: prevent newly created inode from being dirtied incorrectly
e8a8acf602 f2fs: support FIEMAP_FLAG_XATTR
042aeed690 f2fs: fix to cover f2fs_inline_data_fiemap with inode_lock
9cf9c37ebe f2fs: check node page again in write end io
b9eedb4813 f2fs: fix to caclulate required free section correctly
75ae50cf15 f2fs: handle newly created page when revoking inmem pages
871b974936 f2fs: add resgid and resuid to reserve root blocks
0cf361acdb f2fs: implement cgroup writeback support
196d52cf4e f2fs: remove unused pend_list_tag
6e899a83f5 f2fs: avoid high cpu usage in discard thread
bb1af976c2 f2fs: make local functions static
ad658936ea f2fs: add reserved blocks for root user
c6e64f1ff1 f2fs: check segment type in __f2fs_replace_block
88cdc60b73 f2fs: update inode info to inode page for new file
4203e9fbd8 f2fs: show precise # of blocks that user/root can use
47dc137291 f2fs: clean up unneeded declaration
27f9e55195 f2fs: continue to do direct IO if we only preallocate partial blocks
f2f1378314 f2fs: enable quota at remount from r to w
d507f30065 f2fs: skip stop_checkpoint for user data writes
4b242ffcdb f2fs: fix missing error number for xattr operation
c6c76a0e61 f2fs: recover directory operations by fsync
5943e3992e f2fs: return error during fill_super
93579c9725 f2fs: fix an error case of missing update inode page
3d753c15af f2fs: fix potential hangtask in f2fs_trace_pid
625f066c5d f2fs: no need return value in restore summary process
f76c831abd f2fs: use unlikely for release case
0408ad5efb f2fs: don't return value in truncate_data_blocks_range
62e507cd2b f2fs: clean up f2fs_map_blocks
233b197757 f2fs: clean up hash codes
58d550e5da f2fs: fix error handling in fill_super
35d78e6fc8 f2fs: spread f2fs_k{m,z}alloc
fecf31ce11 f2fs: inject fault to kvmalloc
41af39db9f f2fs: inject fault to kzalloc
9fecb4159d f2fs: remove a redundant conditional expression
8e56c02ee9 f2fs: apply write hints to select the type of segment for direct write
a4015f9147 f2fs: switch to fscrypt_prepare_setattr()
56351ec774 f2fs: switch to fscrypt_prepare_lookup()
51f2caabf9 f2fs: switch to fscrypt_prepare_rename()
f9a35b22b9 f2fs: switch to fscrypt_prepare_link()
787bd2632d f2fs: switch to fscrypt_file_open()
eb9d8ee0fd posix_acl: convert posix_acl.a_refcount from atomic_t to refcount_t
bd0bb8ab0c f2fs: remove repeated f2fs_bug_on
d1c0441c02 f2fs: remove an excess variable
3f12c94d1b f2fs: fix lock dependency in between dio_rwsem & i_mmap_sem
39685b35e8 f2fs: remove unused parameter
b83577043a f2fs: still write data if preallocate only partial blocks
b61cf21718 f2fs: introduce sysfs readdir_ra to readahead inode block in readdir
44ed9b2d12 f2fs: fix concurrent problem for updating free bitmap
08be3792ef f2fs: remove unneeded memory footprint accounting
33362399b3 f2fs: no need to read nat block if nat_block_bitmap is set
01bb5c8b1f f2fs: reserve nid resource for quota sysfile

Change-Id: Ie0beb18a04fc300d1591d64c7ae542a478644e26
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2018-02-22 19:18:40 +00:00
..
9p fs/9p: Compare qid.path in v9fs_test_inode 2017-11-30 08:40:49 +00:00
adfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
affs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
afs afs: Connect up the CB.ProbeUuid 2017-12-14 09:53:15 +01:00
autofs4 autofs: fix careless error in recent commit 2017-12-20 10:10:17 +01:00
befs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
btrfs Btrfs: fix unexpected -EEXIST when creating new inode 2018-02-22 15:42:30 +01:00
cachefiles License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ceph ceph: drop negative child dentries before try pruning inode's alias 2017-12-20 10:10:19 +01:00
cifs CIFS: zero sensitive data when freeing 2018-02-16 20:22:43 +01:00
coda coda: fix 'kernel memory exposure attempt' in fsync 2017-11-24 08:37:05 +01:00
configfs
cramfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
crypto fscrypt: updates on 4.15-rc4 2018-01-16 10:06:04 -08:00
debugfs
devpts devpts: fix error handling in devpts_mntget() 2018-02-16 20:23:11 +01:00
dlm License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ecryptfs eCryptfs: use after free in ecryptfs_release_messaging() 2017-11-30 08:40:45 +00:00
efivarfs
efs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
exofs Merge branch 'for-4.14/block' of git://git.kernel.dk/linux-block 2017-09-07 11:59:42 -07:00
exportfs
ext2 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ext4 This is the 4.14.21 stable release 2018-02-22 18:12:09 +01:00
f2fs f2fs: updates on v4.16-rc1 2018-02-22 19:18:40 +00:00
fat fs/fat/inode.c: fix sb_rdonly() change 2017-12-05 11:26:29 +01:00
freevxfs
fscache License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fuse ANDROID: fuse: Add support for d_canonical_path 2018-01-29 19:39:58 -08:00
gfs2 GFS2: Take inode off order_write list when setting jdata flag 2017-12-20 10:10:29 +01:00
hfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hfsplus License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hostfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hpfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hugetlbfs fs/hugetlbfs/inode.c: fix hwpoison reserve accounting 2017-11-03 07:39:19 -07:00
isofs isofs: fix timestamps beyond 2027 2017-11-30 08:40:45 +00:00
jbd2 jbd2: fix sphinx kernel-doc build warnings 2018-02-22 15:42:26 +01:00
jffs2 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
jfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
kernfs kernfs: fix regression in kernfs_fop_write caused by wrong type 2018-02-16 20:22:59 +01:00
lockd race of lockd inetaddr notifiers vs nlmsvc_rqst change 2018-02-03 17:39:08 +01:00
minix License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ncpfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nfs NFS: Fix a race between mmap() and O_DIRECT 2018-02-16 20:22:59 +01:00
nfs_common lockd: fix "list_add double add" caused by legacy signal interface 2018-02-03 17:39:08 +01:00
nfsd lockd: fix "list_add double add" caused by legacy signal interface 2018-02-03 17:39:08 +01:00
nilfs2 nilfs2: fix race condition that causes file system corruption 2017-11-30 08:40:44 +00:00
nls License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
notify ANDROID: vfs: Add permission2 for filesystems with per mount permissions 2018-01-29 19:39:59 -08:00
ntfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ocfs2 ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE 2018-02-22 15:42:16 +01:00
omfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
openpromfs
orangefs orangefs: fix deadlock; do not write i_size in read_iter 2018-01-31 14:03:43 +01:00
overlayfs ovl: hash directory inodes for fsnotify 2018-02-22 15:42:33 +01:00
proc This is the 4.14.20 stable release 2018-02-17 14:54:49 +01:00
pstore ANDROID: fs: pstore: ram: Add ramoops_console_write_buf api 2017-12-18 21:11:22 +05:30
qnx4 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qnx6 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
quota quota: Check for register_shrinker() failure. 2018-02-03 17:39:11 +01:00
ramfs mm: make pagevec_lookup() update index 2017-09-06 17:27:26 -07:00
reiserfs reiserfs: remove unneeded i_version bump 2018-02-03 17:39:05 +01:00
romfs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sdcardfs ANDROID: sdcardfs: Protect set_top 2018-02-02 20:04:44 -08:00
squashfs ANDROID: Squashfs: lz4_wrapper: Remove unused variable 2018-01-11 12:59:34 -08:00
sysfs
sysv License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tracefs
ubifs This is the 4.14.20 stable release 2018-02-17 14:54:49 +01:00
udf udf: Avoid overflow when session starts at large offset 2017-12-20 10:10:36 +01:00
ufs License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xfs xfs: Properly retry failed dquot items in case of error during buffer writeback 2018-02-03 17:39:15 +01:00
aio.c Merge branch 'work.read_write' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2017-09-14 19:29:55 -07:00
anon_inodes.c
attr.c ANDROID: vfs: Add permission2 for filesystems with per mount permissions 2018-01-29 19:39:59 -08:00
bad_inode.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
binfmt_aout.c fs: fix kernel_read prototype 2017-09-04 19:05:15 -04:00
binfmt_elf.c Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2017-09-14 18:13:32 -07:00
binfmt_elf_fdpic.c Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2017-09-14 18:13:32 -07:00
binfmt_em86.c
binfmt_flat.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
binfmt_misc.c fs/binfmt_misc.c: node could be NULL when evicting inode 2017-10-13 16:18:33 -07:00
binfmt_script.c exec: load_script: kill the onstack interp[BINPRM_BUF_SIZE] array 2017-10-03 17:54:25 -07:00
block_dev.c fs/mpage.c: fix mpage_writepage() for pages with buffers 2017-10-13 16:18:33 -07:00
buffer.c fs: guard_bio_eod() needs to consider partitions 2017-11-30 08:40:45 +00:00
char_dev.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
compat.c
compat_binfmt_elf.c
compat_ioctl.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
coredump.c ANDROID: vfs: Add setattr2 for filesystems with per mount permissions 2018-01-29 19:39:58 -08:00
dax.c dax: fix PMD faults on zero-length files 2017-11-30 08:40:53 +00:00
dcache.c This is the 4.14.21 stable release 2018-02-22 18:12:09 +01:00
dcookies.c
direct-io.c Changes since last update: 2017-10-18 14:51:50 -04:00
drop_caches.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
eventfd.c
eventpoll.c ANDROID: fs: epoll: use freezable blocking call 2017-12-18 21:11:22 +05:30
exec.c ANDROID: vfs: Add permission2 for filesystems with per mount permissions 2018-01-29 19:39:59 -08:00
fcntl.c fcntl: don't cap l_start and l_end values for F_GETLK64 in compat syscall 2017-12-17 15:07:59 +01:00
fhandle.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
file.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
file_table.c fput: Don't reinvent the wheel but use existing llist API 2017-08-28 00:50:23 -04:00
filesystems.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fs-writeback.c ANDROID: fs: block_dump: Don't display inode changes if block_dump < 2 2017-12-18 21:11:22 +05:30
fs_pin.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fs_struct.c ANDROID: fs: Export free_fs_struct and set_fs_pwd 2018-01-29 19:40:12 -08:00
inode.c ANDROID: vfs: Add setattr2 for filesystems with per mount permissions 2018-01-29 19:39:58 -08:00
internal.h ANDROID: vfs: Allow filesystems to access their private mount data 2018-01-29 19:39:58 -08:00
ioctl.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iomap.c fs: invalidate page cache after end_io() in dio completion 2017-10-16 12:11:56 -07:00
Kconfig ANDROID: Included sdcardfs source code for kernel 3.0 2018-01-29 19:39:58 -08:00
Kconfig.binfmt
libfs.c
locks.c
Makefile ANDROID: Included sdcardfs source code for kernel 3.0 2018-01-29 19:39:58 -08:00
mbcache.c mbcache: initialize entry->e_referenced in mb_cache_entry_create() 2018-02-22 15:42:25 +01:00
mount.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpage.c ANDROID: fs: Refactor FS readpage/write tracepoints. 2017-12-18 21:11:22 +05:30
namei.c ANDROID: fs: Export vfs_rmdir2 2018-01-29 19:40:12 -08:00
namespace.c This is the 4.14.17 stable release 2018-02-03 17:51:21 +01:00
no-block.c
nsfs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
open.c ANDROID: vfs: Add permission2 for filesystems with per mount permissions 2018-01-29 19:39:59 -08:00
pipe.c pipe: fix off-by-one error when checking buffer limits 2018-02-16 20:23:05 +01:00
pnode.c ANDROID: mnt: Add filesystem private data to mount points 2018-01-29 19:39:58 -08:00
pnode.h ANDROID: mnt: Add filesystem private data to mount points 2018-01-29 19:39:58 -08:00
posix_acl.c f2fs: updates on v4.16-rc1 2018-02-22 19:18:40 +00:00
proc_namespace.c ANDROID: vfs: Allow filesystems to access their private mount data 2018-01-29 19:39:58 -08:00
read_write.c ANDROID: Revert "fs: unexport vfs_read and vfs_write" 2018-01-30 14:24:43 -08:00
readdir.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
select.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
seq_file.c seq_file: fix incomplete reset on read from zero offset 2018-02-22 15:42:28 +01:00
signalfd.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
splice.c fs: move kernel_write to fs/read_write.c 2017-09-04 19:05:15 -04:00
stack.c
stat.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
statfs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
super.c ANDROID: vfs: Allow filesystems to access their private mount data 2018-01-29 19:39:58 -08:00
sync.c ANDROID: fs: sched: add a counter to track fsync 2017-12-18 21:11:22 +05:30
timerfd.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
userfaultfd.c This is the 4.14.13 stable release 2018-01-10 09:41:41 +01:00
utimes.c ANDROID: vfs: Add setattr2 for filesystems with per mount permissions 2018-01-29 19:39:58 -08:00
xattr.c ANDROID: xattr: Pass EOPNOTSUPP to permission2 2018-01-29 19:39:59 -08:00