]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: update i_disksize when new eof exceeds it
authorShan Hai <shan.hai@oracle.com>
Sat, 29 Dec 2018 05:34:53 +0000 (13:34 +0800)
committerBrian Maly <brian.maly@oracle.com>
Mon, 14 Jan 2019 17:29:46 +0000 (12:29 -0500)
commit556c8219a2f4617d9cb2cc02d5556c52a6e0c9d1
tree6ec636e82110de9752a7ba561b5767150a86af46
parent55ad0e944b189dad8da3c735e577a7bbc85ea5db
ext4: update i_disksize when new eof exceeds it

Orabug: 28940828

This patch is a helper for back porting upstream commit 45d8ec4d9fd5
(ext4: update i_disksize if direct write past ondisk size), add a condition
to allow updating i_disksize through calling ext4_ind_direct_IO when the new
eof exceeds both i_size and i_disksize.

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
fs/ext4/inode.c