mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
new helper: end_writeback()
Essentially, the minimal variant of ->evict_inode(). It's a trimmed-down clear_inode(), sans any fs callbacks. Once it returns we know that no async writeback will be happening; every ->evict_inode() instance should do that once and do that before doing anything ->write_inode() could interfere with (e.g. freeing the on-disk inode). Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
661074e91b
commit
b0683aa638
3 changed files with 14 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ static void truncate_hugepages(struct inode *inode, loff_t lstart)
|
|||
static void hugetlbfs_evict_inode(struct inode *inode)
|
||||
{
|
||||
truncate_hugepages(inode, 0);
|
||||
clear_inode(inode);
|
||||
end_writeback(inode);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
|
|
|||
Loading…
Reference in a new issue